diff options
author | André Føyn Berge <im-andre@foynberge.com> | 2017-10-06 20:30:23 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-10-24 00:21:11 +0300 |
commit | 87804a6c0e23c480fc38f4f7515e807fea88a402 (patch) | |
tree | 71e932e75f2e2dcebee2189a2baa665e04f94c43 /test | |
parent | 509b3b81d68095cee8a0c732b527072bc9537260 (diff) |
test: replace fixturesDir with fixtures module
PR-URL: https://github.com/nodejs/node/pull/15947
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-internal-util-decorate-error-stack.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-internal-util-decorate-error-stack.js b/test/parallel/test-internal-util-decorate-error-stack.js index 7028188f6cd..d428e3c7ee2 100644 --- a/test/parallel/test-internal-util-decorate-error-stack.js +++ b/test/parallel/test-internal-util-decorate-error-stack.js @@ -1,11 +1,11 @@ // Flags: --expose_internals 'use strict'; -const common = require('../common'); +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const internalUtil = require('internal/util'); const binding = process.binding('util'); const spawnSync = require('child_process').spawnSync; -const path = require('path'); const kArrowMessagePrivateSymbolIndex = binding['arrow_message_private_symbol']; const kDecoratedPrivateSymbolIndex = binding['decorated_private_symbol']; @@ -32,8 +32,7 @@ function checkStack(stack) { } let err; const badSyntaxPath = - path.join(common.fixturesDir, 'syntax', 'bad_syntax') - .replace(/\\/g, '\\\\'); + fixtures.path('syntax', 'bad_syntax').replace(/\\/g, '\\\\'); try { require(badSyntaxPath); |