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: nodejs#16831
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
intercity-technology authored and Trott committed Nov 8, 2017
1 parent fa8aee8 commit 15fa9fc
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 15fa9fc

Please sign in to comment.