fix + move duplicate keys check

This commit is contained in:
William Harrison committed 2025-01-13 17:33:45 +08:00
1 parent 246ff4f49e
commit 0be1de0efc
2 files changed
+32 -12

No files matched your search

-10
View File
@@ -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`);
});
});