diff options
author | jacjam <jacjam@gmail.com> | 2017-10-06 10:34:26 -0700 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-10-08 15:14:04 -0700 |
commit | ca4e549410d0e638a12b8d56eed59939e1ff9790 (patch) | |
tree | 3755cd79f27d78d0cf0e1347e5cefeb0a222eb84 /test/parallel/test-http2-respond-file-204.js | |
parent | 3f263403e53af403196207e60841f3012e41b2af (diff) | |
download | node-new-ca4e549410d0e638a12b8d56eed59939e1ff9790.tar.gz |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-http2-respond-file-204.js')
-rw-r--r-- | test/parallel/test-http2-respond-file-204.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http2-respond-file-204.js b/test/parallel/test-http2-respond-file-204.js index 13818d0243..8181dbb317 100644 --- a/test/parallel/test-http2-respond-file-204.js +++ b/test/parallel/test-http2-respond-file-204.js @@ -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) => { |