From 1275cba7ac94183f4950e21f315c6f4ce8499c91 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 1/2] test: replaced common.fixturesDir usage with common.fixtures module --- test/parallel/test-internal-util-decorate-error-stack.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-internal-util-decorate-error-stack.js b/test/parallel/test-internal-util-decorate-error-stack.js index 7028188f6cd4bf..82a8e12f65803c 100644 --- a/test/parallel/test-internal-util-decorate-error-stack.js +++ b/test/parallel/test-internal-util-decorate-error-stack.js @@ -1,6 +1,7 @@ // 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'); @@ -32,7 +33,7 @@ function checkStack(stack) { } let err; const badSyntaxPath = - path.join(common.fixturesDir, 'syntax', 'bad_syntax') + path.join(fixtures.fixturesDir, 'syntax', 'bad_syntax') .replace(/\\/g, '\\\\'); try { From f93a60fbb9184f7ade7d85073e48f63a60ce92ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20F=C3=B8yn=20Berge?= Date: Thu, 19 Oct 2017 09:30:34 +0200 Subject: [PATCH 2/2] test: replace path.join with fixtures.path --- test/parallel/test-internal-util-decorate-error-stack.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-internal-util-decorate-error-stack.js b/test/parallel/test-internal-util-decorate-error-stack.js index 82a8e12f65803c..b1c2bf1e0b1ffe 100644 --- a/test/parallel/test-internal-util-decorate-error-stack.js +++ b/test/parallel/test-internal-util-decorate-error-stack.js @@ -6,7 +6,6 @@ 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']; @@ -33,7 +32,7 @@ function checkStack(stack) { } let err; const badSyntaxPath = - path.join(fixtures.fixturesDir, 'syntax', 'bad_syntax') + fixtures.path('syntax', 'bad_syntax') .replace(/\\/g, '\\\\'); try {