From 66eb6dc75965078ca186278bea92839bb8f2346d Mon Sep 17 00:00:00 2001 From: Daryl Thayil Date: Thu, 1 Dec 2016 10:20:41 -0600 Subject: [PATCH] test: refactor test-require-extensions-main * var => const * assert test fixtures PR-URL: https://github.com/nodejs/node/pull/9912 Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann --- test/parallel/test-require-extensions-main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-require-extensions-main.js b/test/parallel/test-require-extensions-main.js index 0376082262dd78..e8420cd26cd512 100644 --- a/test/parallel/test-require-extensions-main.js +++ b/test/parallel/test-require-extensions-main.js @@ -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' +);