Skip to content

Commit 1365a6f

Browse files
adilioMylesBorins
authored andcommitted
test: use common.fixtures module for file path
PR-URL: #16017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent bd8d440 commit 1365a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-fs-read-zero-length.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
const assert = require('assert');
4-
const path = require('path');
55
const fs = require('fs');
6-
const filepath = path.join(common.fixturesDir, 'x.txt');
6+
const filepath = fixtures.path('x.txt');
77
const fd = fs.openSync(filepath, 'r');
88
const expected = '';
99

0 commit comments

Comments
 (0)