From 0a88e1bd604bb7a42b4d8bf436ea2e4829fd8e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20F=C3=B8yn=20Berge?= Date: Fri, 6 Oct 2017 10:30:23 -0700 Subject: [PATCH] test: replace fixturesDir with fixtures module PR-URL: https://github.com/nodejs/node/pull/15947 Reviewed-By: Gireesh Punathil Reviewed-By: Michael Dawson Reviewed-By: Ruben Bridgewater Reviewed-By: Joyee Cheung --- test/parallel/test-util-decorate-error-stack.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-util-decorate-error-stack.js b/test/parallel/test-util-decorate-error-stack.js index 5e4a2bd3b7842d..a6ba4a607f5cf8 100644 --- a/test/parallel/test-util-decorate-error-stack.js +++ b/test/parallel/test-util-decorate-error-stack.js @@ -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);