Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

paratest

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paratest - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test/funcs.js

21

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc