Skip to content

Commit

Permalink
test: switch to fixtures module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mousius authored and MylesBorins committed Nov 28, 2017
1 parent 1144be0 commit d2b74fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-file-read-noexist.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

const filename = path.join(common.fixturesDir, 'does_not_exist.txt');
const filename = fixtures.path('does_not_exist.txt');
fs.readFile(filename, 'latin1', common.mustCall(function(err, content) {
assert.ok(err);
assert.strictEqual(err.code, 'ENOENT');
Expand Down

0 comments on commit d2b74fe

Please sign in to comment.