jest-theories
Advanced tools
Comparing version
@@ -0,1 +1,3 @@ | ||
import format from 'string-format'; | ||
const theoretically = (testName, theories, testFunc) => { | ||
@@ -10,3 +12,3 @@ if(!test){ | ||
theories.forEach(theory => { | ||
test(testName, testFunc.bind(this, theory)); | ||
test(testName.format(theory), testFunc.bind(this, theory)); | ||
}); | ||
@@ -13,0 +15,0 @@ }; |
{ | ||
"name": "jest-theories", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"scripts": { | ||
@@ -19,11 +19,13 @@ "build": "babel index.js --out-dir dist" | ||
"license": "MIT", | ||
"repository" : | ||
{ | ||
"type" : "git", | ||
"url" : "https://github.com/RobPethick/jest-theories" | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/RobPethick/jest-theories" | ||
}, | ||
"bugs": { | ||
"url" : "https://github.com/RobPethick/jest-theories/issues" | ||
"url": "https://github.com/RobPethick/jest-theories/issues" | ||
}, | ||
"typings": "index.d.ts" | ||
"typings": "index.d.ts", | ||
"dependencies": { | ||
"string-format": "^0.5.0" | ||
} | ||
} |
4366
28.9%36
2.86%31
3000%1
Infinity%+ Added
+ Added