Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3840803

Browse files
matiboyterinjokes
authored andcommitted
test(dns): ensure fields are sent for MX and SRV
1 parent 6dc8a11 commit 3840803

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/dns.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ test('create MX record without priority - defaults to 0', async t => {
263263
}
264264
});
265265
let record = await t.context.cf.addDNS(rr);
266-
t.true(record.priority === 0);
266+
t.is(record.priority, 0);
267267
});
268268

269269
test('create MX record with priority', async t => {
@@ -275,14 +275,14 @@ test('create MX record with priority', async t => {
275275
priority: 50
276276
});
277277
nock('https://api.cloudflare.com')
278-
.post('/client/v4/zones/1/dns_records')
279-
.reply(200, {
280-
result: {
281-
id: '12345',
282-
type: 'MX',
283-
priority: rr.priority
284-
}
285-
});
278+
.post('/client/v4/zones/1/dns_records')
279+
.reply(200, {
280+
result: {
281+
id: '12345',
282+
type: 'MX',
283+
priority: rr.priority
284+
}
285+
});
286286
let record = await t.context.cf.addDNS(rr);
287-
t.true(record.priority === 50);
287+
t.is(record.priority, 50);
288288
});

0 commit comments

Comments
 (0)