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 <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
intercity-technology authored and MylesBorins committed Nov 28, 2017
1 parent b3b7858 commit 8e5b4f5
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 8e5b4f5

Please sign in to comment.