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: #9912
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
darylthayilporch authored and MylesBorins committed Dec 21, 2016
1 parent 8e093c2 commit 3f20246
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 3f20246

Please sign in to comment.