MCPcopy Create free account
hub / github.com/nock/nock / readFile

Function readFile

examples/binary-reply.js:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const nock = require('../')
6
7const readFile = function () {
8 return fs.readFileSync(
9 path.resolve(__dirname, '../tests/assets/reply_file_2.txt.gz'),
10 )
11}
12
13nock('http://binary.com').get('/binary').reply(200, readFile(), {
14 'content-type': 'application/octet-stream',

Callers 1

binary-reply.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected