Skip to content

Commit 0e1a9fa

Browse files
mckalexeedanbev
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: nodejs#15881 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent b5e8ae4 commit 0e1a9fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
const common = require('../common');
44
if (!common.hasCrypto)
55
common.skip('missing crypto');
6+
const fixtures = require('../common/fixtures');
67
const http2 = require('http2');
78
const assert = require('assert');
8-
const path = require('path');
99
const fs = require('fs');
1010

1111
const {
@@ -14,7 +14,7 @@ const {
1414
HTTP2_HEADER_LAST_MODIFIED
1515
} = http2.constants;
1616

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

0 commit comments

Comments
 (0)