Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "paratest", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "parameterize your js tests", | ||
"main": "index.js", | ||
"scripts": { | ||
"jasmine": "jasmine", | ||
"jest": "jest", | ||
"test": "jasmine && jest" | ||
"jasmine": "jasmine test/jasmine/*.js", | ||
"jest": "jest test/jest", | ||
"mocha": "mocha test/mocha", | ||
"test": "npm run jasmine && npm run jest && npm run mocha" | ||
}, | ||
@@ -16,9 +17,9 @@ "repository": { | ||
"keywords": [ | ||
"js", | ||
"jasmine", | ||
"jest", | ||
"js", | ||
"parameterized", | ||
"paratest", | ||
"test", | ||
"testing", | ||
"parameterized", | ||
"paratest" | ||
"testing" | ||
], | ||
@@ -32,5 +33,7 @@ "author": "coldpour", | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"jasmine": "^2.8.0", | ||
"jest": "^21.2.1" | ||
"jest": "^21.2.1", | ||
"mocha": "^4.0.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
module.exports = function test(name, tests) { | ||
module.exports = function test(name, tests, assert) { | ||
return describe(name, () => { | ||
@@ -7,3 +7,7 @@ tests.forEach(test => { | ||
it(c.name, () => { | ||
expect(test.subject(...c.args)).toEqual(c.result); | ||
if(assert) { | ||
assert(test.subject(...c.args), c.result); | ||
} else { | ||
expect(test.subject(...c.args)).toEqual(c.result); | ||
} | ||
}); | ||
@@ -10,0 +14,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4046
11
50
4