Skip to content

Commit 0a88e1b

Browse files
andyband7MylesBorins
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: #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>
1 parent c3cc0fd commit 0a88e1b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-util-decorate-error-stack.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Flags: --expose_internals
22
'use strict';
3-
const common = require('../common');
3+
require('../common');
4+
const fixtures = require('../common/fixtures');
45
const assert = require('assert');
56
const internalUtil = require('internal/util');
67
const spawnSync = require('child_process').spawnSync;
7-
const path = require('path');
88

99
assert.doesNotThrow(function() {
1010
internalUtil.decorateErrorStack();
@@ -26,8 +26,7 @@ function checkStack(stack) {
2626
}
2727
let err;
2828
const badSyntaxPath =
29-
path.join(common.fixturesDir, 'syntax', 'bad_syntax')
30-
.replace(/\\/g, '\\\\');
29+
fixtures.path('syntax', 'bad_syntax').replace(/\\/g, '\\\\');
3130

3231
try {
3332
require(badSyntaxPath);

0 commit comments

Comments
 (0)