test: clarify assertion failure

PR-URL: https://github.com/nodejs/node/pull/15889
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
pull/15923/merge
ryshep111 2017-10-06 13:06:28 -04:00 committed by Ruben Bridgewater
parent b5f3054eb6
commit 92d326994d
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ const fixtures = require('../common/fixtures');
assert.strictEqual(
typeof global.gc,
'function',
'Run this test with --expose-gc'
`Type of global.gc is not a function. Type: ${typeof global.gc}.` +
' Run this test with --expose-gc'
);
tls.createServer({