mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-13 20:15:15 +00:00
Update tests/proxy.test.js
Co-authored-by: William Harrison <87287585+wdhdev@users.noreply.github.com>
This commit is contained in:
1 parent
0f1ea3b00e
commit
e1ab75d00d
1 file changed
+1
-1
+1
-1
@@ -6,7 +6,7 @@ const requiredRecordsToProxy = ["A", "AAAA", "CNAME"];
|
||||
|
||||
function validateProxiedRecords(t, data, file) {
|
||||
if (data.proxied) {
|
||||
const hasProxiedRecord = Object.keys(data.record).some((key) => requiredRecordsToProxy.includes(key));
|
||||
const hasProxiedRecord = Object.keys(data.records).some((key) => requiredRecordsToProxy.includes(key));
|
||||
|
||||
t.true(hasProxiedRecord, `${file}: Proxied is true but there are no records that can be proxied`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user