Skip to content

Commit

Permalink
test: add values to error message
Browse files Browse the repository at this point in the history
In test-require-extensions-main, include the values that caused the test
to fail in the messages reporting the failure.

PR-URL: #16831
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
intercity-technology authored and MylesBorins committed Nov 17, 2017
1 parent e66a7ae commit 1b1bd26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-require-extensions-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ require('../common');
const assert = require('assert');
const fixtures = require('../common/fixtures');

const fixturesRequire =
require(fixtures.path('require-bin', 'bin', 'req.js'));
const fixturesRequire = require(fixtures.path('require-bin', 'bin', 'req.js'));

assert.strictEqual(
fixturesRequire,
'',
'test-require-extensions-main failed to import fixture requirements'
'test-require-extensions-main failed to import fixture requirements: ' +
fixturesRequire
);

0 comments on commit 1b1bd26

Please sign in to comment.