mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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>
This commit is contained in:
1 parent
c3cc0fd258
commit
0a88e1bd60
1 file changed
+3
-4
@@ -1,10 +1,10 @@
|
||||
// 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 spawnSync = require('child_process').spawnSync;
|
||||
const path = require('path');
|
||||
|
||||
assert.doesNotThrow(function() {
|
||||
internalUtil.decorateErrorStack();
|
||||
@@ -26,8 +26,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);
|
||||
|
||||
Reference in new issue
Block a user