From d3272c487a2f023961f2fb8d62e4b943732e2745 Mon Sep 17 00:00:00 2001 From: Christopher Choi Date: Fri, 6 Oct 2017 09:55:43 -0700 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater --- test/parallel/test-fs-buffer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-fs-buffer.js b/test/parallel/test-fs-buffer.js index e7f575a437555e..1cbead434469e9 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) => {