Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndré Føyn Berge <im-andre@foynberge.com>2017-10-06 20:30:23 +0300
committerMyles Borins <mylesborins@google.com>2017-10-24 00:21:11 +0300
commit87804a6c0e23c480fc38f4f7515e807fea88a402 (patch)
tree71e932e75f2e2dcebee2189a2baa665e04f94c43 /test
parent509b3b81d68095cee8a0c732b527072bc9537260 (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.js7
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);