Skip to content

Commit 152bf22

Browse files
MousiusTrott
authored andcommitted
test: switch to fixtures module
In test-file-read-noexist, switch from common.fixturesDir to the fixtures module. PR-URL: nodejs#15880 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent adbc5d7 commit 152bf22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-file-read-noexist.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

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

28-
const filename = path.join(common.fixturesDir, 'does_not_exist.txt');
28+
const filename = fixtures.path('does_not_exist.txt');
2929
fs.readFile(filename, 'latin1', common.mustCall(function(err, content) {
3030
assert.ok(err);
3131
assert.strictEqual(err.code, 'ENOENT');

0 commit comments

Comments
 (0)