From 086d8519a172dd229299553d09248e5deb92abf1 Mon Sep 17 00:00:00 2001 From: JamesNimlos Date: Fri, 6 Oct 2017 09:53:41 -0700 Subject: [PATCH] test: use fixtures module over fixturesDir clean up code by using fixtures helper module instead of fixturesDir directly. PR-URL: https://github.com/nodejs/node/pull/15847 Reviewed-By: Ryan Graham Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca --- test/sequential/test-deprecation-flags.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/sequential/test-deprecation-flags.js b/test/sequential/test-deprecation-flags.js index 39acb0b09a1b5b..201d85deeccc6f 100644 --- a/test/sequential/test-deprecation-flags.js +++ b/test/sequential/test-deprecation-flags.js @@ -1,18 +1,19 @@ 'use strict'; -const common = require('../common'); +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const execFile = require('child_process').execFile; -const depmod = require.resolve(`${common.fixturesDir}/deprecated.js`); +const depmod = fixtures.path('deprecated.js'); const node = process.execPath; const depUserlandFunction = - require.resolve(`${common.fixturesDir}/deprecated-userland-function.js`); + fixtures.path('deprecated-userland-function.js'); const depUserlandClass = - require.resolve(`${common.fixturesDir}/deprecated-userland-class.js`); + fixtures.path('deprecated-userland-class.js'); const depUserlandSubClass = - require.resolve(`${common.fixturesDir}/deprecated-userland-subclass.js`); + fixtures.path('deprecated-userland-subclass.js'); const normal = [depmod]; const noDep = ['--no-deprecation', depmod];