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

Commit b03faa5

Browse files
JamesNimlosaddaleax
authored andcommitted
test: use fixtures module over fixturesDir
clean up code by using fixtures helper module instead of fixturesDir directly. PR-URL: nodejs/node#15847 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent f0cf222 commit b03faa5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/sequential/test-deprecation-flags.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
const common = require('../common');
23+
require('../common');
24+
const fixtures = require('../common/fixtures');
2425
const assert = require('assert');
2526
const execFile = require('child_process').execFile;
26-
const depmod = require.resolve(`${common.fixturesDir}/deprecated.js`);
27+
const depmod = fixtures.path('deprecated.js');
2728
const node = process.execPath;
2829

2930
const depUserlandFunction =
30-
require.resolve(`${common.fixturesDir}/deprecated-userland-function.js`);
31+
fixtures.path('deprecated-userland-function.js');
3132

3233
const depUserlandClass =
33-
require.resolve(`${common.fixturesDir}/deprecated-userland-class.js`);
34+
fixtures.path('deprecated-userland-class.js');
3435

3536
const depUserlandSubClass =
36-
require.resolve(`${common.fixturesDir}/deprecated-userland-subclass.js`);
37+
fixtures.path('deprecated-userland-subclass.js');
3738

3839
const normal = [depmod];
3940
const noDep = ['--no-deprecation', depmod];

0 commit comments

Comments
 (0)