Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 73851d0

Browse files
andyband7addaleax
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: nodejs/node#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 ed6d3c2 commit 73851d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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 binding = process.binding('util');
78
const spawnSync = require('child_process').spawnSync;
8-
const path = require('path');
99

1010
const kArrowMessagePrivateSymbolIndex = binding['arrow_message_private_symbol'];
1111
const kDecoratedPrivateSymbolIndex = binding['decorated_private_symbol'];
@@ -32,8 +32,7 @@ function checkStack(stack) {
3232
}
3333
let err;
3434
const badSyntaxPath =
35-
path.join(common.fixturesDir, 'syntax', 'bad_syntax')
36-
.replace(/\\/g, '\\\\');
35+
fixtures.path('syntax', 'bad_syntax').replace(/\\/g, '\\\\');
3736

3837
try {
3938
require(badSyntaxPath);

0 commit comments

Comments
 (0)