Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
test: replace fixturesDir with fixtures module
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15840
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
tkarsten authored and addaleax committed Oct 26, 2017
1 parent fe19f14 commit a9b5e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

/* eslint-disable strict */
const common = require('../common');
const fixtures = require('../common/fixtures');

const assert = require('assert');
const path = require('path');

common.globalCheck = false;

Expand All @@ -40,7 +40,7 @@ assert.strictEqual(baseBar, // eslint-disable-line no-undef
'bar',
'global.x -> x in base level not working');

const mod = require(path.join(common.fixturesDir, 'global', 'plain'));
const mod = require(fixtures.path('global', 'plain'));
const fooBar = mod.fooBar;

assert.strictEqual(fooBar.foo, 'foo', 'x -> global.x in sub level not working');
Expand Down

0 comments on commit a9b5e3e

Please sign in to comment.