Browse Source

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>
v9.x-staging
Vladimir Ilic 7 years ago
committed by Joyee Cheung
parent
commit
4826ac537f
  1. 4
      test/parallel/test-fs-read.js

4
test/parallel/test-fs-read.js

@ -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…
Cancel
Save