Skip to content

Commit d2b74fe

Browse files
MousiusMylesBorins
authored andcommitted
test: switch to fixtures module
In test-file-read-noexist, switch from common.fixturesDir to the fixtures module. PR-URL: #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 1144be0 commit d2b74fe

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
@@ -1,10 +1,10 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
const assert = require('assert');
4-
const path = require('path');
55
const fs = require('fs');
66

7-
const filename = path.join(common.fixturesDir, 'does_not_exist.txt');
7+
const filename = fixtures.path('does_not_exist.txt');
88
fs.readFile(filename, 'latin1', common.mustCall(function(err, content) {
99
assert.ok(err);
1010
assert.strictEqual(err.code, 'ENOENT');

0 commit comments

Comments
 (0)