Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 3ba19b7

Browse files
kanika46shahaddaleax
authored andcommitted
test: use fixtures module
PR-URL: nodejs/node#15959 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bc00750 commit 3ba19b7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/parallel/test-fs-error-messages.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
const common = require('../common');
23+
require('../common');
24+
const fixtures = require('../common/fixtures');
2425
const assert = require('assert');
25-
const path = require('path');
2626
const fs = require('fs');
27-
const fn = path.join(common.fixturesDir, 'non-existent');
28-
const existingFile = path.join(common.fixturesDir, 'exit.js');
29-
const existingFile2 = path.join(common.fixturesDir, 'create-file.js');
30-
const existingDir = path.join(common.fixturesDir, 'empty');
31-
const existingDir2 = path.join(common.fixturesDir, 'keys');
27+
const fn = fixtures.path('non-existent');
28+
const existingFile = fixtures.path('exit.js');
29+
const existingFile2 = fixtures.path('create-file.js');
30+
const existingDir = fixtures.path('empty');
31+
const existingDir2 = fixtures.path('keys');
3232

3333
// ASYNC_CALL
3434

0 commit comments

Comments
 (0)