summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/libnpmteam/test/util/tnock.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/libnpmteam/test/util/tnock.js')
-rw-r--r--deps/npm/node_modules/libnpmteam/test/util/tnock.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/npm/node_modules/libnpmteam/test/util/tnock.js b/deps/npm/node_modules/libnpmteam/test/util/tnock.js
new file mode 100644
index 0000000000..00b6e160e1
--- /dev/null
+++ b/deps/npm/node_modules/libnpmteam/test/util/tnock.js
@@ -0,0 +1,12 @@
+'use strict'
+
+const nock = require('nock')
+
+module.exports = tnock
+function tnock (t, host) {
+ const server = nock(host)
+ t.tearDown(function () {
+ server.done()
+ })
+ return server
+}