Skip to content

Commit

Permalink
test: replace fixturesDir with fixtures module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
andyband7 authored and MylesBorins committed Oct 23, 2017
1 parent 509b3b8 commit 87804a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-internal-util-decorate-error-stack.js
Original file line number Diff line number Diff line change
@@ -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'];
Expand All @@ -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);
Expand Down

0 comments on commit 87804a6

Please sign in to comment.