Skip to content

Commit

Permalink
test: refactor test-require-extensions-main
Browse files Browse the repository at this point in the history
* var => const
* assert test fixtures

PR-URL: nodejs#9912
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
darylthayilporch authored and Jonathan Darling committed Dec 8, 2016
1 parent 85850af commit 66eb6dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/parallel/test-require-extensions-main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';
var common = require('../common');
const assert = require('assert');
const common = require('../common');
const fixturesRequire = require(`${common.fixturesDir}/require-bin/bin/req.js`);

require(common.fixturesDir + '/require-bin/bin/req.js');
assert.strictEqual(
fixturesRequire,
'',
'test-require-extensions-main failed to import fixture requirements'
);

0 comments on commit 66eb6dc

Please sign in to comment.