diff --git a/test/common/index.js b/test/common/index.js index 084078cd9d0097..66326070a02166 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -693,8 +693,8 @@ exports.expectsError = function expectsError(fn, settings, exact) { assert.fail(`Expected one argument, got ${util.inspect(arguments)}`); } const descriptor = Object.getOwnPropertyDescriptor(error, 'message'); - assert.strictEqual(descriptor.enumerable, - false, 'The error message should be non-enumerable'); + // The error message should be non-enumerable + assert.strictEqual(descriptor.enumerable, false); let innerSettings = settings; if ('type' in settings) {