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