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: #15960
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
madeinjam authored and MylesBorins committed Oct 11, 2017
1 parent 44719ed commit a224760
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 @@ -4,16 +4,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 a224760

Please sign in to comment.