@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 +1 -1
- package/src/TestingLib.js +2 -2
package/package.json
CHANGED
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
|
|
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')) {
|