Update proxy.test.js

This commit is contained in:
Jon authored and GitHub committed 2024-11-17 13:05:29 -05:00
1 parent cadeae7027
commit 306cb45403
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ const requiredRecordsToProxy = ["A", "AAAA", "CNAME"];
function validateProxiedRecords(t, data, file) {
if (data.proxied) {
const hasProxiedRecord = Object.keys(data.records).some((key) => requiredRecordsToProxy.includes(key));
const hasProxiedRecord = Object.keys(data.record).some((key) => requiredRecordsToProxy.includes(key));
t.true(hasProxiedRecord, `${file}: Proxied is true but there are no records that can be proxied`);
}