test: replace fixtureDir with fixtures methods
PR-URL: https://github.com/nodejs/node/pull/16114 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
24d72944da
commit
4826ac537f
@ -21,10 +21,10 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const path = require('path');
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const filepath = path.join(common.fixturesDir, 'x.txt');
|
const filepath = fixtures.path('x.txt');
|
||||||
const fd = fs.openSync(filepath, 'r');
|
const fd = fs.openSync(filepath, 'r');
|
||||||
|
|
||||||
const expected = Buffer.from('xyz\n');
|
const expected = Buffer.from('xyz\n');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user