aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-global.js
diff options
context:
space:
mode:
authorThomas Karsten <thomas.karsten@fastretailing.com>2017-10-06 09:34:59 -0700
committerRuben Bridgewater <ruben@bridgewater.de>2017-10-19 01:52:48 -0200
commit8597a18cdbb339abd20a2342d263c8eee3bc51e8 (patch)
treea7c8b299625748583eac83c0cf93982ef72456cc /test/parallel/test-global.js
parentef96b05c741cd2ab3434e89bcb9bf5b54b568c3a (diff)
downloadandroid-node-v8-8597a18cdbb339abd20a2342d263c8eee3bc51e8.tar.gz
android-node-v8-8597a18cdbb339abd20a2342d263c8eee3bc51e8.tar.bz2
android-node-v8-8597a18cdbb339abd20a2342d263c8eee3bc51e8.zip
test: replace fixturesDir with fixtures module
PR-URL: https://github.com/nodejs/node/pull/15840 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-global.js')
-rw-r--r--test/parallel/test-global.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-global.js b/test/parallel/test-global.js
index 2463a3d4ac..2300fd1051 100644
--- a/test/parallel/test-global.js
+++ b/test/parallel/test-global.js
@@ -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;
@@ -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');