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:
parent
3c0ebf5aca
commit
76abf0fae0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user