mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-14 12:16:57 +00:00
Update records.test.js
This commit is contained in:
1 file changed
+2
-2
@@ -310,7 +310,7 @@ t("All files should have valid record values", (t) => {
|
||||
}
|
||||
}
|
||||
|
||||
// TXT: object | objext[]
|
||||
// TXT: object | object[]
|
||||
if (key === "TXT") {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach((record) => {
|
||||
@@ -320,7 +320,7 @@ t("All files should have valid record values", (t) => {
|
||||
);
|
||||
});
|
||||
} else {
|
||||
t.true(typeof value === "onject", `${file}: Record value should be a object for ${key}`);
|
||||
t.true(typeof value === "object", `${file}: Record value should be a object for ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user