nock-back-mocha
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ 'use strict'; | ||
module.exports = function (fixtures, mode) { | ||
module.exports = function (fixtures) { | ||
var filenames = []; | ||
@@ -20,9 +20,5 @@ return { | ||
var previousMode = nock.back.currentMode; | ||
nock.back.setMode(mode); | ||
nock.back(filename, function (nockDone) { | ||
this.currentTest.nockDone = function () { | ||
nockDone(); | ||
nock.back.setMode(previousMode); | ||
nock.back.fixtures = previousFixtures; | ||
@@ -29,0 +25,0 @@ }; |
{ | ||
"name": "nock-back-mocha", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
@@ -19,5 +16,19 @@ "type": "git", | ||
"homepage": "https://github.com/porchdotcom/nock-back-mocha#readme", | ||
"scripts": { | ||
"test": "./node_modules/.bin/mocha", | ||
"lint": "./node_modules/.bin/eslint ." | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"test" | ||
], | ||
"dependencies": { | ||
"nock": "^2.10.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^4.1.1", | ||
"eslint": "^1.3.1", | ||
"mocha": "^2.3.0", | ||
"pre-commit": "^1.1.1" | ||
} | ||
} |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
14060
6
58
0
4