Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: use arrow funcs verifying buffer.includes
  • Loading branch information
toboid committed Feb 7, 2017
commit 83c8f293d570a0dbb356ccb8bd2d0de954e6b667
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