mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-16 10:15:19 +00:00
Update tests/records.test.js
Co-authored-by: William Harrison <87287585+wdhdev@users.noreply.github.com>
This commit is contained in:
1 parent
7afee5c330
commit
c2be28e326
1 file changed
+1
-1
@@ -114,7 +114,7 @@ t("All files should not have duplicate record keys", (t) => {
|
||||
files.forEach((file) => {
|
||||
const data = fs.readJsonSync(path.join(domainsPath, file));
|
||||
|
||||
const recordKeys = Object.keys(data.record);
|
||||
const recordKeys = Object.keys(data.records);
|
||||
const uniqueRecordKeys = new Set(recordKeys);
|
||||
|
||||
t.is(recordKeys.length, uniqueRecordKeys.size, `${file}: Duplicate record keys found`);
|
||||
|
||||
Reference in new issue
Block a user