Skip to content

Commit 7a4c7e6

Browse files
tomleahrvagg
authored andcommittedAug 15, 2018
test: don't mask descriptor.enumerable
PR-URL: #22172 Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
1 parent f989681 commit 7a4c7e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/common/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ exports.expectsError = function expectsError(fn, settings, exact) {
703703
assert.fail(`Expected one argument, got ${util.inspect(arguments)}`);
704704
}
705705
const descriptor = Object.getOwnPropertyDescriptor(error, 'message');
706-
assert.strictEqual(descriptor.enumerable,
707-
false, 'The error message should be non-enumerable');
706+
// The error message should be non-enumerable
707+
assert.strictEqual(descriptor.enumerable, false);
708708

709709
let innerSettings = settings;
710710
if ('type' in settings) {

0 commit comments

Comments
 (0)