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 2.0.0 to 2.0.1

8

lib/StepDefinition.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -10,9 +8,7 @@ value: true

var _uuid = _interopRequireDefault(require("uuid"));
var _uuid = require("uuid");
const uuidV4 = _uuid.default.v4;
/**
* This class is defining a step for execution. It is used in a suite.
*/
class StepDefinition {

@@ -27,3 +23,3 @@ constructor(opts = {}) {

this.id = opts.id ? opts.id : uuidV4();
this.id = opts.id ? opts.id : (0, _uuid.v4)();
}

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

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

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

"devDependencies": {
"@babel/cli": "7.4.3",
"@babel/core": "7.4.3",
"@babel/node": "7.2.2",
"@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/cli": "7.8.4",
"@babel/core": "7.9.0",
"@babel/node": "7.8.7",
"@babel/plugin-proposal-object-rest-spread": "7.9.0",
"@babel/plugin-transform-runtime": "7.9.0",
"@babel/polyfill": "7.8.7",
"@babel/preset-env": "7.9.0",
"@babel/register": "7.9.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "24.7.1",
"cz-conventional-changelog": "2.1.0",
"eslint": "5.16.0",
"eslint-config-prettier": "4.1.0",
"babel-eslint": "10.1.0",
"babel-jest": "25.2.4",
"cz-conventional-changelog": "3.1.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-plugin-babel": "5.3.0",
"jest": "24.7.1",
"jest-cli": "24.7.1",
"jest": "25.2.4",
"jest-cli": "25.2.4",
"jest-environment-node-debug": "2.0.0",
"prettier": "1.17.0",
"regenerator-runtime": "0.13.2",
"semantic-release": "15.13.3"
"prettier": "2.0.2",
"regenerator-runtime": "0.13.5",
"semantic-release": "17.0.4"
},
"dependencies": {
"@babel/runtime": "7.4.3",
"uuid": "3.3.2"
"@babel/runtime": "7.9.2",
"uuid": "7.0.2"
}
}

@@ -5,3 +5,3 @@ import fs from 'fs'

import { loadSuite, createRandomSuiteNormal } from '../lib/index'
import { loadSuite, createRandomSuiteNormal } from '../src/index'

@@ -11,3 +11,3 @@ const FIXTURES = path.join(__dirname, 'fixtures')

test('loadSuite', async done => {
test('loadSuite', async (done) => {
const suiteFileLoad = path.join(FIXTURES, 'suite_normal.json')

@@ -21,3 +21,3 @@ const expected = await readFile(suiteFileLoad, 'utf-8')

test('createRandomSuiteNormal', async done => {
test('createRandomSuiteNormal', async (done) => {
const suiteDefinition = createRandomSuiteNormal()

@@ -24,0 +24,0 @@ const errors = suiteDefinition.validate()

@@ -1,4 +0,4 @@

import StepDefinition from '../lib/StepDefinition'
import StepDefinition from '../src/StepDefinition'
test('validate: No errors', async done => {
test('validate: No errors', async (done) => {
const stepDef = new StepDefinition({

@@ -16,3 +16,3 @@ class: 'my class',

test('validate: Name missing', async done => {
test('validate: Name missing', async (done) => {
const stepDef = new StepDefinition({

@@ -35,3 +35,3 @@ class: 'my class',

test('validate: Class missing', async done => {
test('validate: Class missing', async (done) => {
const stepDef = new StepDefinition({

@@ -55,3 +55,3 @@ name: 'my step name',

test('create Step', async done => {
test('create Step', async (done) => {
const stepDef = new StepDefinition({

@@ -58,0 +58,0 @@ name: 'my step name',

@@ -1,7 +0,7 @@

import SuiteDefinition from '../lib/SuiteDefinition'
import { EXECUTION_MODE_NORMAL } from '../lib/SuiteDefinition'
import StepDefinition from '../lib/StepDefinition'
import TestcaseDefinition from '../lib/TestcaseDefinition'
import SuiteDefinition from '../src/SuiteDefinition'
import { EXECUTION_MODE_NORMAL } from '../src/SuiteDefinition'
import StepDefinition from '../src/StepDefinition'
import TestcaseDefinition from '../src/TestcaseDefinition'
test('validate: No errors', async done => {
test('validate: No errors', async (done) => {
const suiteDef = new SuiteDefinition({

@@ -21,3 +21,3 @@ name: 'my step name',

test('validate: Missing name', async done => {
test('validate: Missing name', async (done) => {
const suiteDef = new SuiteDefinition({

@@ -39,3 +39,3 @@ // name: 'my step name',

test('validate: Missing testcases', async done => {
test('validate: Missing testcases', async (done) => {
const suiteDef = new SuiteDefinition({

@@ -60,3 +60,3 @@ name: 'my step name',

test('validate: Missing steps', async done => {
test('validate: Missing steps', async (done) => {
const suiteDef = new SuiteDefinition({

@@ -78,3 +78,3 @@ name: 'my step name',

test.only('validate: Different test cases have different amount of steps', async done => {
test.only('validate: Different test cases have different amount of steps', async (done) => {
const suiteDef = new SuiteDefinition({

@@ -109,3 +109,3 @@ name: 'my step name',

test.only('validate: Different test cases have different amount of steps but NOT batch mode', async done => {
test.only('validate: Different test cases have different amount of steps but NOT batch mode', async (done) => {
const suiteDef = new SuiteDefinition({

@@ -155,3 +155,3 @@ name: 'my step name',

function addSteps(ids, suite) {
ids.forEach(id => {
ids.forEach((id) => {
const stepDef = new StepDefinition({

@@ -158,0 +158,0 @@ class: 'my class',

@@ -1,4 +0,4 @@

import TestcaseDefinition from '../lib/TestcaseDefinition'
import TestcaseDefinition from '../src/TestcaseDefinition'
test('validate: No errors', async done => {
test('validate: No errors', async (done) => {
const testcaseDef = new TestcaseDefinition({

@@ -18,3 +18,3 @@ name: 'my step name',

test('validate: Missing name', async done => {
test('validate: Missing name', async (done) => {
const testcaseDef = new TestcaseDefinition({

@@ -35,3 +35,3 @@ description: 'my description',

test('validate: Missing data', async done => {
test('validate: Missing data', async (done) => {
const testcaseDef = new TestcaseDefinition({

@@ -57,3 +57,3 @@ name: 'my step name',

test('validate: Missing steps', async done => {
test('validate: Missing steps', async (done) => {
const testcaseDef = new TestcaseDefinition({

@@ -79,3 +79,3 @@ name: 'my step name',

test('validate: steps count !== data count', async done => {
test('validate: steps count !== data count', async (done) => {
const testcaseDef = new TestcaseDefinition({

@@ -82,0 +82,0 @@ name: 'my step name',

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