From 0e1a9fafddd3ba852e2754288799fe4d1be6269f Mon Sep 17 00:00:00 2001 From: Alex McKenzie Date: Fri, 6 Oct 2017 11:59:12 -0500 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/15881 Reviewed-By: Rich Trott Reviewed-By: Daniel Bevenius --- test/parallel/test-http2-respond-file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file.js b/test/parallel/test-http2-respond-file.js index 30e0c154504dcf..c2f513b7cae2b7 100644 --- a/test/parallel/test-http2-respond-file.js +++ b/test/parallel/test-http2-respond-file.js @@ -3,9 +3,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 { @@ -14,7 +14,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);