Skip to content

Commit d7f03e6

Browse files
committed
fix: use Array.prototype.includes instead of some
1 parent 3031525 commit d7f03e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-dns-lookupService-promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const assert = require('assert');
66
const dnsPromises = require('dns').promises;
77

88
dnsPromises.lookupService('127.0.0.1', 22).then(common.mustCall((result) => {
9-
assert(['ssh', '22'].some((x) => x === result.service));
9+
assert(['ssh', '22'].includes(result.service));
1010
assert.strictEqual(typeof result.hostname, 'string');
1111
assert.notStrictEqual(result.hostname.length, 0);
1212
}));

0 commit comments

Comments
 (0)