0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

test: use common.fixtures.path()

PR-URL: https://github.com/nodejs/node/pull/16112
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
Tobias Kieslich 2017-10-09 16:38:31 -07:00 committed by Rich Trott
parent 0c9b267b1d
commit 7525df7af2

View File

@ -1,9 +1,9 @@
'use strict';
const common = require('../common');
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');
const fs = require('fs');
const fn = path.join(common.fixturesDir, 'empty.txt');
const fn = fixtures.path('empty.txt');
tempFd(function(fd, close) {
fs.readFile(fd, function(err, data) {