mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-09-10 02:17:29 +00:00
Update pr.test.js
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ t("Modified JSON files must be owned by the PR author", async (t) => {
|
||||
t("New JSON files must be owned by the PR author", async (t) => {
|
||||
if (EVENT !== "pull_request") return t.pass();
|
||||
|
||||
const headDomainsFiles = await fs.readdir(headDomainsPath);
|
||||
const headDomainsFiles = fs.readdirSync(headDomainsPath);
|
||||
|
||||
const newFiles = MODIFIED_FILES.filter((file) => !headDomainsFiles.includes(file.substring(file.lastIndexOf("/") + 1)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user