Skip to content

Commit a224760

Browse files
madeinjamMylesBorins
authored andcommitted
test: upgrade from fixturesDir to fixtures.path
The common/fixtures module provides convenience methods for working with files in the test/fixtures directory. PR-URL: #15960 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 44719ed commit a224760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
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

1111
const {
1212
HTTP2_HEADER_CONTENT_TYPE,
1313
HTTP2_HEADER_STATUS
1414
} = http2.constants;
1515

16-
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
16+
const fname = fixtures.path('elipses.txt');
1717

1818
const server = http2.createServer();
1919
server.on('stream', (stream) => {

0 commit comments

Comments
 (0)