diff --git a/test/common/index.js b/test/common/index.js index bcd28cc28710e7..4ee1098cd29bb2 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -702,8 +702,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) {