summaryrefslogtreecommitdiff
path: root/test/sequential/test-deprecation-flags.js
diff options
context:
space:
mode:
authorBryan English <bryan@bryanenglish.com>2016-05-26 09:43:09 -0700
committerBryan English <bryan@bryanenglish.com>2016-06-06 15:28:52 -0700
commitcc2a88a2f32bab8a14209713c19aaf14d7652a45 (patch)
treee072ffc6124cbe20fd96059fb14da790665f396e /test/sequential/test-deprecation-flags.js
parent843d58fcbbec09cde5633e0bc5ab025d0a640204 (diff)
downloadandroid-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.tar.gz
android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.tar.bz2
android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.zip
test: use common.fixturesDir almost everywhere
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: https://github.com/nodejs/node/pull/6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/sequential/test-deprecation-flags.js')
-rw-r--r--test/sequential/test-deprecation-flags.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-deprecation-flags.js b/test/sequential/test-deprecation-flags.js
index 35a443c2bb..bbb5ecb700 100644
--- a/test/sequential/test-deprecation-flags.js
+++ b/test/sequential/test-deprecation-flags.js
@@ -1,12 +1,12 @@
'use strict';
-require('../common');
+const common = require('../common');
const assert = require('assert');
const execFile = require('child_process').execFile;
-const depmod = require.resolve('../fixtures/deprecated.js');
+const depmod = require.resolve(common.fixturesDir + '/deprecated.js');
const node = process.execPath;
const depUserland =
- require.resolve('../fixtures/deprecated-userland-function.js');
+ require.resolve(common.fixturesDir + '/deprecated-userland-function.js');
const normal = [depmod];
const noDep = ['--no-deprecation', depmod];