diff options
author | Christopher Choi <Christopher.Choi@telus.com> | 2017-10-06 09:55:43 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-08 20:23:51 -0700 |
commit | b5e8ae4ff8f869ac0b38b44049d992fdbfb21331 (patch) | |
tree | 07362b66e413dfd6581a58e89eb3d52ac846b69e /test/parallel/test-fs-buffer.js | |
parent | 7a8d51c07966caa06fcd664a22709c5348d365d3 (diff) | |
download | android-node-v8-b5e8ae4ff8f869ac0b38b44049d992fdbfb21331.tar.gz android-node-v8-b5e8ae4ff8f869ac0b38b44049d992fdbfb21331.tar.bz2 android-node-v8-b5e8ae4ff8f869ac0b38b44049d992fdbfb21331.zip |
test: use common.fixtures module
Replace common.fixturesDir with usage of the common.fixtures module.
PR-URL: https://github.com/nodejs/node/pull/15891
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-fs-buffer.js')
-rw-r--r-- | test/parallel/test-fs-buffer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-fs-buffer.js b/test/parallel/test-fs-buffer.js index e7f575a437..1cbead4344 100644 --- a/test/parallel/test-fs-buffer.js +++ b/test/parallel/test-fs-buffer.js @@ -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'); @@ -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) => { |