(t, host, opts)
| 7 | |
| 8 | module.exports = tnock |
| 9 | function tnock (t, host, opts) { |
| 10 | nock.disableNetConnect() |
| 11 | const server = nock(host, opts) |
| 12 | t.teardown(function () { |
| 13 | nock.enableNetConnect() |
| 14 | server.done() |
| 15 | }) |
| 16 | return server |
| 17 | } |
no test coverage detected