Skip to content

Commit f0f4d1b

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 55a49b0 commit f0f4d1b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-common.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
const assert = require('assert');
4-
5-
const {join} = require('path');
65
const {execFile} = require('child_process');
76

87
common.globalCheck = false;
@@ -37,10 +36,10 @@ fnAtLeast2Called3();
3736

3837
const failFixtures = [
3938
[
40-
join(common.fixturesDir, 'failmustcall1.js'),
39+
fixtures.path('failmustcall1.js'),
4140
'Mismatched <anonymous> function calls. Expected exactly 2, actual 1.'
4241
], [
43-
join(common.fixturesDir, 'failmustcall2.js'),
42+
fixtures.path('failmustcall2.js'),
4443
'Mismatched <anonymous> function calls. Expected at least 2, actual 1.'
4544
]
4645
];

0 commit comments

Comments
 (0)