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: nodejs#15823 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e8bf4d5 commit 56c0e7d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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)