diff options
author | Tyler Seabrook <seabrook.mx@gmail.com> | 2017-10-06 09:49:32 -0700 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-10-14 22:25:50 +0800 |
commit | bb56fbbfe5c6703768c03c0117c9d4c88ac2c896 (patch) | |
tree | 8c9eade607a824771c73806a67aec70fcef16ea0 | |
parent | 9aa41cb294636ae10dc340461a9c109d9f00c75d (diff) | |
download | android-node-v8-bb56fbbfe5c6703768c03c0117c9d4c88ac2c896.tar.gz android-node-v8-bb56fbbfe5c6703768c03c0117c9d4c88ac2c896.tar.bz2 android-node-v8-bb56fbbfe5c6703768c03c0117c9d4c88ac2c896.zip |
test: update fixturesDir import
Import fixturesDir path from common/fixturesDir
module rather than from common.
PR-URL: https://github.com/nodejs/node/pull/15887
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
-rw-r--r-- | test/sequential/test-stream2-fs.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sequential/test-stream2-fs.js b/test/sequential/test-stream2-fs.js index fba52a42d4..e2da2dca64 100644 --- a/test/sequential/test-stream2-fs.js +++ b/test/sequential/test-stream2-fs.js @@ -20,14 +20,15 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -const common = require('../common'); +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const fs = require('fs'); const FSReadable = fs.ReadStream; const path = require('path'); -const file = path.resolve(common.fixturesDir, 'x1024.txt'); +const file = path.resolve(fixtures.path('x1024.txt')); const size = fs.statSync(file).size; |