mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-14 10:18:58 +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
9bc8700bea
commit
7afee5c330
1 file changed
+1
-1
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user