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: #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 MylesBorins committed Oct 11, 2017
1 parent e7c55bf commit d3272c4
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 d3272c4

Please sign in to comment.