mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-13 04:15:12 +00:00
Update json.test.js
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -4,7 +4,7 @@ const path = require("path");
|
||||
|
||||
const requiredFields = {
|
||||
owner: "object",
|
||||
records: "object"
|
||||
record: "object"
|
||||
};
|
||||
|
||||
const optionalOwnerFields = {
|
||||
@@ -75,7 +75,7 @@ t("All files should have the required fields", (t) => {
|
||||
validateRequiredFields(t, data.owner, requiredFields, file);
|
||||
|
||||
if (!data.reserved) {
|
||||
t.true(Object.keys(data.records).length > 0, `${file}: No record types found`);
|
||||
t.true(Object.keys(data.record).length > 0, `${file}: No record types found`);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user