Update tests/records.test.js

Co-authored-by: William Harrison <87287585+wdhdev@users.noreply.github.com>
This commit is contained in:
JonandWilliam Harrison authored and GitHub committed 2024-11-13 09:43:22 -05:00
1 parent 9bc8700bea
commit 7afee5c330
1 file changed
+1 -1
+1 -1
View File
@@ -89,7 +89,7 @@ function isPublicIPv6(ip) {
t("All files should have valid record types", (t) => {
files.forEach((file) => {
const data = fs.readJsonSync(path.join(domainsPath, file));
const recordKeys = Object.keys(data.record);
const recordKeys = Object.keys(data.records);
recordKeys.forEach((key) => {
t.true(validRecordTypes.includes(key), `${file}: Invalid record type: ${key}`);