Skip to content

Commit e48c8b3

Browse files
matthewreed26MylesBorins
authored andcommitted
test: replace fixtureDir with fixtures.path
PR-URL: #15943 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 572492a commit e48c8b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-common.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425
const assert = require('assert');
25-
const { join } = require('path');
2626
const { execFile } = require('child_process');
2727

2828
// test for leaked global detection
@@ -72,10 +72,10 @@ fnAtLeast2Called3();
7272

7373
const failFixtures = [
7474
[
75-
join(common.fixturesDir, 'failmustcall1.js'),
75+
fixtures.path('failmustcall1.js'),
7676
'Mismatched <anonymous> function calls. Expected exactly 2, actual 1.'
7777
], [
78-
join(common.fixturesDir, 'failmustcall2.js'),
78+
fixtures.path('failmustcall2.js'),
7979
'Mismatched <anonymous> function calls. Expected at least 2, actual 1.'
8080
]
8181
];

0 commit comments

Comments
 (0)