mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-21 10:25:56 +00:00
Update pr.test.js
This commit is contained in:
+3
-1
@@ -51,7 +51,9 @@ t("New JSON files must be owned by the PR author", async (t) => {
|
||||
|
||||
const headDomainsFiles = fs.readdirSync(headDomainsPath);
|
||||
|
||||
console.log("Head files", headDomainsFiles);
|
||||
console.log("Head files", headDomainsFiles.filter((file) => MODIFIED_FILES.includes(file.substring(file.lastIndexOf("/") + 1))));
|
||||
|
||||
console.log("Modified files", MODIFIED_FILES.map((file) => file.substring(file.lastIndexOf("/") + 1)));
|
||||
|
||||
const newFiles = MODIFIED_FILES.filter((file) => !headDomainsFiles.includes(file.substring(file.lastIndexOf("/") + 1)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user