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

@bitdiver/definition

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitdiver/definition - npm Package Compare versions

Comparing version 1.1.3 to 2.0.0

lib/helper.js

16

lib/index.js

@@ -40,2 +40,14 @@ "use strict";

});
Object.defineProperty(exports, "loadSuite", {
enumerable: true,
get: function () {
return _helper.loadSuite;
}
});
Object.defineProperty(exports, "createRandomSuiteNormal", {
enumerable: true,
get: function () {
return _helper.createRandomSuiteNormal;
}
});

@@ -46,2 +58,4 @@ var _SuiteDefinition = _interopRequireWildcard(require("./SuiteDefinition"));

var _StepDefinition = _interopRequireDefault(require("./StepDefinition"));
var _StepDefinition = _interopRequireDefault(require("./StepDefinition"));
var _helper = require("./helper");

4

lib/StepDefinition.js

@@ -14,3 +14,3 @@ "use strict";

/**
* This class is defining a step
* This class is defining a step for execution. It is used in a suite.
*/

@@ -27,3 +27,3 @@

this.id = uuidV4();
this.id = opts.id ? opts.id : uuidV4();
}

@@ -30,0 +30,0 @@ /**

@@ -25,6 +25,15 @@ "use strict";

this.testcases = []; // Stores all the steps of this suite by there ID
this.testcases = opts.testcases ? opts.testcases : []; // Stores all the steps of this suite by there ID
this.steps = {}; // In this mode all the testcases will be executed at the same time
this.steps = {}; // if the steps are given as an array of steps
if (opts.steps !== undefined && Array.isArray(opts.steps)) {
for (const s of opts.steps) {
this.steps[s.id] = s;
}
} else if (opts.steps !== undefined) {
this.steps = opts.steps;
} // In this mode all the testcases will be executed at the same time
this.executionMode = opts.executionMode ? opts.executionMode : EXECUTION_MODE_BATCH;

@@ -31,0 +40,0 @@ }

@@ -18,6 +18,6 @@ "use strict";

this.steps = []; // all the data for this testcase. One entry for each step
this.steps = opts.steps ? opts.steps : []; // all the data for this testcase. One entry for each step
// This could be an array or an object
this.data = [];
this.data = opts.data ? opts.data : [];
}

@@ -24,0 +24,0 @@ /**

{
"name": "@bitdiver/definition",
"version": "1.1.3",
"version": "2.0.0",
"description": "",

@@ -38,28 +38,28 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/cli": "7.2.3",
"@babel/core": "7.3.4",
"@babel/cli": "7.4.3",
"@babel/core": "7.4.3",
"@babel/node": "7.2.2",
"@babel/plugin-proposal-object-rest-spread": "7.3.4",
"@babel/plugin-transform-runtime": "7.3.4",
"@babel/polyfill": "7.2.5",
"@babel/preset-env": "7.3.4",
"@babel/register": "7.0.0",
"@babel/plugin-proposal-object-rest-spread": "7.4.3",
"@babel/plugin-transform-runtime": "7.4.3",
"@babel/polyfill": "7.4.3",
"@babel/preset-env": "7.4.3",
"@babel/register": "7.4.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "24.1.0",
"babel-jest": "24.7.1",
"cz-conventional-changelog": "2.1.0",
"eslint": "5.14.1",
"eslint": "5.16.0",
"eslint-config-prettier": "4.1.0",
"eslint-plugin-babel": "5.3.0",
"jest": "24.1.0",
"jest-cli": "24.1.0",
"jest": "24.7.1",
"jest-cli": "24.7.1",
"jest-environment-node-debug": "2.0.0",
"prettier": "1.16.4",
"regenerator-runtime": "0.13.1",
"prettier": "1.17.0",
"regenerator-runtime": "0.13.2",
"semantic-release": "15.13.3"
},
"dependencies": {
"@babel/runtime": "7.3.4",
"@babel/runtime": "7.4.3",
"uuid": "3.3.2"
}
}

@@ -52,1 +52,19 @@ import StepDefinition from '../lib/StepDefinition'

})
test('create Step', async done => {
const stepDef = new StepDefinition({
name: 'my step name',
description: 'my description',
class: 'myClass',
id: 'myId',
})
expect(stepDef).toEqual({
class: 'myClass',
description: 'my description',
id: 'myId',
name: 'my step name',
})
done()
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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