darvin-testing-framework
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -188,2 +188,3 @@ 'use strict'; | ||
if (expectedResponses.length !== response.length) { | ||
console.error(`RESPONSES LENGTHS DO NOT MATCH:\nEXPECT: ${expectedResponses.length}\nACTUAL: ${response.length}`); | ||
return false; | ||
@@ -198,3 +199,3 @@ } | ||
if (!isValidResponse) { | ||
throw Error(`Unexpected response. Expected: ${JSON.stringify(step.bot)}. Actual: ${JSON.stringify(response)}`); | ||
throw Error(`UNEXPECTED RESPONSE. \nEXPECT: ${JSON.stringify(step.bot)}. \nACTUAL: ${JSON.stringify(response)}`); | ||
} | ||
@@ -207,2 +208,3 @@ } | ||
if (Object.keys(actual).length !== keys.length) { | ||
console.error(`KEYS DOES NOT MATCH:\nKEYS EXPECT: ${keys}\nKEYS ACTUAL: ${Object.keys(actual)}`); | ||
return false; | ||
@@ -215,3 +217,3 @@ } | ||
if (!isValid) { | ||
return false; | ||
throw Error(`FAILED VERIFICATION:\nKEY: ${key}\nEXPECT: ${JSON.stringify(expected)}\nACTUAL: ${JSON.stringify(actual)}`); | ||
} | ||
@@ -218,0 +220,0 @@ } |
{ | ||
"name": "darvin-testing-framework", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A framework for testing Progress NativeChat bots.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # Darvin Testing Framework |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
250
22737