Skip to content

Commit

Permalink
test: upgrade from fixturesDir to fixtures.path
Browse files Browse the repository at this point in the history
The common/fixtures module provides convenience methods
for working with files in the test/fixtures directory.

PR-URL: nodejs#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]>
  • Loading branch information
madeinjam authored and BridgeAR committed Oct 8, 2017
1 parent 3f26340 commit ca4e549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-respond-file-204.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const fixtures = require('../common/fixtures');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

const {
HTTP2_HEADER_CONTENT_TYPE,
HTTP2_HEADER_STATUS
} = http2.constants;

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

const server = http2.createServer();
server.on('stream', (stream) => {
Expand Down

0 comments on commit ca4e549

Please sign in to comment.