darvin-testing-framework
Advanced tools
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", |
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
14092
136