From 39ae3f18023cfbbd7e90f02bfd079427274bdeea Mon Sep 17 00:00:00 2001 From: matthewreed26 Date: Fri, 6 Oct 2017 13:22:24 -0400 Subject: [PATCH] test: replace fixtureDir with fixtures.path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15943 Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- test/parallel/test-common.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-common.js b/test/parallel/test-common.js index 583a5272c6f54c..037303a6dd08bf 100644 --- a/test/parallel/test-common.js +++ b/test/parallel/test-common.js @@ -1,8 +1,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); - -const {join} = require('path'); const {execFile} = require('child_process'); common.globalCheck = false; @@ -37,10 +36,10 @@ fnAtLeast2Called3(); const failFixtures = [ [ - join(common.fixturesDir, 'failmustcall1.js'), + fixtures.path('failmustcall1.js'), 'Mismatched function calls. Expected exactly 2, actual 1.' ], [ - join(common.fixturesDir, 'failmustcall2.js'), + fixtures.path('failmustcall2.js'), 'Mismatched function calls. Expected at least 2, actual 1.' ] ];