mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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>
This commit is contained in:
1 parent
40d2da60d9
commit
dbbb36ecb2
1 file changed
+3
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user