We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a2c71 commit 5bfc4f5Copy full SHA for 5bfc4f5
test/parallel/test-http2-respond-file-push.js
@@ -4,9 +4,11 @@
4
const common = require('../common');
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
+
8
+const fixtures = require('../common/fixtures');
9
10
const http2 = require('http2');
11
const assert = require('assert');
-const path = require('path');
12
const fs = require('fs');
13
14
const {
@@ -15,7 +17,7 @@ const {
15
17
HTTP2_HEADER_LAST_MODIFIED
16
18
} = http2.constants;
19
-const fname = path.resolve(common.fixturesDir, 'elipses.txt');
20
+const fname = fixtures.path('elipses.txt');
21
const data = fs.readFileSync(fname);
22
const stat = fs.statSync(fname);
23
const fd = fs.openSync(fname, 'r');
0 commit comments