Skip to content

Commit 83c8f29

Browse files
committed
test: use arrow funcs verifying buffer.includes
1 parent 69c1ff9 commit 83c8f29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-buffer-includes.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ for (let lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
277277

278278
const expectedError =
279279
/^TypeError: "val" argument must be string, number, Buffer or Uint8Array$/;
280-
assert.throws(function() {
281-
b.includes(function() { });
280+
assert.throws(() => {
281+
b.includes(() => {});
282282
}, expectedError);
283-
assert.throws(function() {
283+
assert.throws(() => {
284284
b.includes({});
285285
}, expectedError);
286-
assert.throws(function() {
286+
assert.throws(() => {
287287
b.includes([]);
288288
}, expectedError);
289289

0 commit comments

Comments
 (0)