@izara_project/izara-testing-shared 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-testing-shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Libraries shared by both local and deployed test environments",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/TestingLib.js CHANGED
@@ -53,8 +53,8 @@ module.exports.checkOutputEventOneLevel = (
53
53
  };
54
54
  //check response/outputEvent // recusive level 2 cannot find eventValue or eventParams
55
55
 
56
- if (!testEventConfigOneLevel.hasOwnProperty('eventValue') && !testEventConfigOneLevel.hasOwnProperty('properties')) {
57
- throw new Error(`outputEvent not have eventValue and not have properties.`)
56
+ if (!testEventConfigOneLevel.hasOwnProperty('eventValue') && !testEventConfigOneLevel.hasOwnProperty('properties') && !testEventConfigOneLevel.hasOwnProperty('value')) {
57
+ throw new Error(`outputEvent not have eventValue and properties and value.`)
58
58
  };
59
59
 
60
60
  if (testEventConfigOneLevel.hasOwnProperty('eventValue')) {