Skip to content

Commit d3272c4

Browse files
cjchoiMylesBorins
authored andcommitted
test: use common.fixtures module
Replace common.fixturesDir with usage of the common.fixtures module. PR-URL: #15891 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e7c55bf commit d3272c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-fs-buffer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const common = require('../common');
4+
const fixtures = require('../common/fixtures');
45
const assert = require('assert');
56
const fs = require('fs');
67
const path = require('path');
@@ -28,7 +29,7 @@ assert.throws(() => {
2829
fs.accessSync(true);
2930
}, /path must be a string or Buffer/);
3031

31-
const dir = Buffer.from(common.fixturesDir);
32+
const dir = Buffer.from(fixtures.fixturesDir);
3233
fs.readdir(dir, 'hex', common.mustCall((err, hexList) => {
3334
assert.ifError(err);
3435
fs.readdir(dir, common.mustCall((err, stringList) => {

0 commit comments

Comments
 (0)