Skip to content

Commit

Permalink
test: replaced fixturesDir with fixtures module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mckalexee authored and MylesBorins committed Oct 11, 2017
1 parent d3272c4 commit 7d8a808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-respond-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
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 fs = require('fs');

const {
Expand All @@ -15,7 +15,7 @@ const {
HTTP2_HEADER_LAST_MODIFIED
} = http2.constants;

const fname = path.resolve(common.fixturesDir, 'elipses.txt');
const fname = fixtures.path('elipses.txt');
const data = fs.readFileSync(fname);
const stat = fs.statSync(fname);

Expand Down

0 comments on commit 7d8a808

Please sign in to comment.