Skip to content

Commit 5bfc4f5

Browse files
ctdioMylesBorins
authored andcommitted
test: replace fixtureDir with fixtures module
This commit replaces the usage of common.fixturesDir with fixtures.path. PR-URL: #15823 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 66a2c71 commit 5bfc4f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/parallel/test-http2-respond-file-push.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
const common = require('../common');
55
if (!common.hasCrypto)
66
common.skip('missing crypto');
7+
8+
const fixtures = require('../common/fixtures');
9+
710
const http2 = require('http2');
811
const assert = require('assert');
9-
const path = require('path');
1012
const fs = require('fs');
1113

1214
const {
@@ -15,7 +17,7 @@ const {
1517
HTTP2_HEADER_LAST_MODIFIED
1618
} = http2.constants;
1719

18-
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
20+
const fname = fixtures.path('elipses.txt');
1921
const data = fs.readFileSync(fname);
2022
const stat = fs.statSync(fname);
2123
const fd = fs.openSync(fname, 'r');

0 commit comments

Comments
 (0)