Skip to content

Commit

Permalink
test: use common.fixtures module
Browse files Browse the repository at this point in the history
Replace common.fixturesDir with usage of the common.fixtures module.

PR-URL: nodejs#15891
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
cjchoi authored and Trott committed Oct 9, 2017
1 parent 7a8d51c commit b5e8ae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-fs-buffer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const fs = require('fs');
const path = require('path');
Expand Down Expand Up @@ -28,7 +29,7 @@ assert.throws(() => {
fs.accessSync(true);
}, /path must be a string or Buffer/);

const dir = Buffer.from(common.fixturesDir);
const dir = Buffer.from(fixtures.fixturesDir);
fs.readdir(dir, 'hex', common.mustCall((err, hexList) => {
assert.ifError(err);
fs.readdir(dir, common.mustCall((err, stringList) => {
Expand Down

0 comments on commit b5e8ae4

Please sign in to comment.