Update json.test.js

This commit is contained in:
Jon authored and GitHub committed 2024-11-17 13:04:55 -05:00
1 parent e29dbaf9d7
commit cadeae7027
1 file changed
+2 -2
+2 -2
View File
@@ -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`);
}
});
});