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:
parent
9aa41cb294
commit
bb56fbbfe5
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user