Skip to content

Commit f1e4160

Browse files
truonghnancyTrott
authored andcommitted
test: fixing linting for modified tests
1 parent 054216c commit f1e4160

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

test/parallel/test-buffer-alloc.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -967,18 +967,14 @@ common.expectsError(
967967
message: 'argument must be a buffer'
968968
});
969969

970-
const regErrorMsg =
971-
new RegExp('The first argument must be one of type string, Buffer, ' +
972-
'ArrayBuffer, Array, or Array-like Object\\.');
973-
974970
assert.throws(() => Buffer.from(), {
975971
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
976-
message: 'The first argument must be one of type string, Buffer, ' +
972+
message: 'The first argument must be one of type string, Buffer, ' +
977973
'ArrayBuffer, Array, or Array-like Object. Received type undefined'
978974
});
979975
assert.throws(() => Buffer.from(null), {
980976
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
981-
message: 'The first argument must be one of type string, Buffer, ' +
977+
message: 'The first argument must be one of type string, Buffer, ' +
982978
'ArrayBuffer, Array, or Array-like Object. Received type object'
983979
});
984980

test/parallel/test-buffer-arraybuffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ assert.throws(function() {
4343
}, {
4444
code: 'ERR_INVALID_ARG_TYPE',
4545
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
46-
message: 'The first argument must be one of type string, Buffer,' +
46+
message: 'The first argument must be one of type string, Buffer,' +
4747
' ArrayBuffer, Array, or Array-like Object. Received type object'
4848
});
4949

0 commit comments

Comments
 (0)