Skip to content

Commit 7d8a808

Browse files
mckalexeeMylesBorins
authored andcommitted
test: replaced fixturesDir with fixtures module
This was an assigned task at Node.js Interactive North America 2017. This replaced the fixturesDir exported by the common module with the fixturesDir on the common/fixtures module. PR-URL: #15881 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent d3272c4 commit 7d8a808

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

1212
const {
@@ -15,7 +15,7 @@ const {
1515
HTTP2_HEADER_LAST_MODIFIED
1616
} = http2.constants;
1717

18-
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
18+
const fname = fixtures.path('elipses.txt');
1919
const data = fs.readFileSync(fname);
2020
const stat = fs.statSync(fname);
2121

0 commit comments

Comments
 (0)