mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-12 16:15:21 +00:00
Update pr.test.js
This commit is contained in:
1 parent
e857069a21
commit
e32bacdf95
1 file changed
+2
-2
+2
-2
@@ -51,11 +51,11 @@ t("New JSON files must be owned by the PR author", async (t) => {
|
||||
|
||||
const headDomainsFiles = fs.readdirSync(headDomainsPath);
|
||||
|
||||
console.log("Head files", headDomainsFiles.filter((file) => MODIFIED_FILES.includes(file.substring(file.lastIndexOf("/") + 1))));
|
||||
console.log("Head files", headDomainsFiles.filter((file) => MODIFIED_FILES.includes(`domains/${file}`)));
|
||||
|
||||
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)));
|
||||
const newFiles = MODIFIED_FILES.map((file) => !headDomainsFiles.includes(file.substring(file.lastIndexOf("/") + 1)));
|
||||
|
||||
console.log("New files", newFiles);
|
||||
|
||||
|
||||
Reference in new issue
Block a user