Socket
Socket
Sign inDemoInstall

darvin-testing-framework

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

darvin-testing-framework - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

10

index.js

@@ -45,2 +45,5 @@ 'use strict';

break;
case 'xit':
xit(scenario.xit, done => that._executeScenario(spec, scenario, done));
break;
}

@@ -62,4 +65,4 @@ });

_validateScenario(spec, scenario) {
if (!scenario.it && !scenario.fit) {
throw Error(`The spec '${spec.name}' has a scenario without description in 'it' / 'fit'.`);
if (!scenario.it && !scenario.fit && !scenario.xit) {
throw Error(`The spec '${spec.name}' has a scenario without description in 'it' / 'fit' / 'xit'.`);
}

@@ -98,3 +101,4 @@

const message = Object.assign({}, step.user, {
mocks: Object.assign({}, scenario.mocks, step.mocks)
mocks: Object.assign({}, scenario.mocks, step.mocks),
contextMock: Object.assign({}, spec.contextMock, scenario.contextMock, step.contextMock)
});

@@ -101,0 +105,0 @@ return this._send(spec, sender, message)

{
"name": "darvin-testing-framework",
"version": "1.4.0",
"version": "1.5.0",
"description": "A framework for testing Darvin.ai bots.",

@@ -5,0 +5,0 @@ "main": "index.js",

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