Skip to content

Commit 56c0e7d

Browse files
ctdiodanbev
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 e8bf4d5 commit 56c0e7d

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
@@ -3,9 +3,11 @@
33
const common = require('../common');
44
if (!common.hasCrypto)
55
common.skip('missing crypto');
6+
7+
const fixtures = require('../common/fixtures');
8+
69
const http2 = require('http2');
710
const assert = require('assert');
8-
const path = require('path');
911
const fs = require('fs');
1012

1113
const {
@@ -14,7 +16,7 @@ const {
1416
HTTP2_HEADER_LAST_MODIFIED
1517
} = http2.constants;
1618

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

0 commit comments

Comments
 (0)