Skip to content

Commit

Permalink
test: use arrow funcs verifying buffer.includes
Browse files Browse the repository at this point in the history
  • Loading branch information
toboid committed Feb 7, 2017
1 parent 69c1ff9 commit 83c8f29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-buffer-includes.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ for (let lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {

const expectedError =
/^TypeError: "val" argument must be string, number, Buffer or Uint8Array$/;
assert.throws(function() {
b.includes(function() { });
assert.throws(() => {
b.includes(() => {});
}, expectedError);
assert.throws(function() {
assert.throws(() => {
b.includes({});
}, expectedError);
assert.throws(function() {
assert.throws(() => {
b.includes([]);
}, expectedError);

Expand Down

0 comments on commit 83c8f29

Please sign in to comment.