From b1e6373dccdc03d518a7b098e70ee7875c902360 Mon Sep 17 00:00:00 2001 From: Alireza Alidousti Date: Fri, 6 Oct 2017 09:37:50 -0700 Subject: [PATCH] test: replaces fixturesDir with fixtures PR-URL: https://github.com/nodejs/node/pull/15838 Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- test/parallel/test-inspector-invalid-args.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-inspector-invalid-args.js b/test/parallel/test-inspector-invalid-args.js index 80473a568cacd8..ae051b92ceda23 100644 --- a/test/parallel/test-inspector-invalid-args.js +++ b/test/parallel/test-inspector-invalid-args.js @@ -1,24 +1,27 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); common.skipIfInspectorDisabled(); const assert = require('assert'); const execFile = require('child_process').execFile; -const path = require('path'); -const mainScript = path.join(common.fixturesDir, 'loop.js'); +const mainScript = fixtures.path('loop.js'); const expected = '`node --debug` and `node --debug-brk` are invalid. ' + 'Please use `node --inspect` or `node --inspect-brk` instead.'; for (const invalidArg of ['--debug-brk', '--debug']) { execFile( process.execPath, - [ invalidArg, mainScript ], + [invalidArg, mainScript], common.mustCall((error, stdout, stderr) => { assert.strictEqual(error.code, 9, `node ${invalidArg} should exit 9`); - assert.strictEqual(stderr.includes(expected), true, - `${stderr} should include '${expected}'`); + assert.strictEqual( + stderr.includes(expected), + true, + `${stderr} should include '${expected}'` + ); }) ); }