mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-19 16:15:54 +00:00
fix + move duplicate keys check
This commit is contained in:
1 parent
246ff4f49e
commit
0be1de0efc
2 files changed
+32
-12
No files matched your search
@@ -275,13 +275,3 @@ t("All files should have valid record types", (t) => {
|
||||
|
||||
t.pass();
|
||||
});
|
||||
|
||||
t("All files should not have duplicate record keys", (t) => {
|
||||
files.forEach((file) => {
|
||||
const data = getDomainData(file);
|
||||
const recordKeys = Object.keys(data.record);
|
||||
const uniqueRecordKeys = new Set(recordKeys);
|
||||
|
||||
t.is(recordKeys.length, uniqueRecordKeys.size, `${file}: Duplicate record keys found`);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user