@camperaid/watest 2.4.1 → 2.4.2
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/core/base.js +5 -1
- package/package.json +1 -1
- package/tests/base/t_contains.js +1 -1
- package/tests/webdriver/t_script.js +1 -1
package/core/base.js
CHANGED
|
@@ -123,7 +123,11 @@ function contains(
|
|
|
123
123
|
})
|
|
124
124
|
)
|
|
125
125
|
) {
|
|
126
|
-
fail_(
|
|
126
|
+
fail_(
|
|
127
|
+
`${msg}, array has no expected item ${stringify(e)}, got: ${stringify(
|
|
128
|
+
got
|
|
129
|
+
)}`
|
|
130
|
+
);
|
|
127
131
|
return false;
|
|
128
132
|
}
|
|
129
133
|
}
|
package/package.json
CHANGED
package/tests/base/t_contains.js
CHANGED
|
@@ -47,7 +47,7 @@ module.exports.test = async () => {
|
|
|
47
47
|
await is_output(
|
|
48
48
|
() => contains([0, 1], [1, 3], `Array contains`),
|
|
49
49
|
[],
|
|
50
|
-
[`Failed: Array contains, array has no expected item 3`],
|
|
50
|
+
[`Failed: Array contains, array has no expected item 3, got: [0, 1]`],
|
|
51
51
|
`failure`
|
|
52
52
|
);
|
|
53
53
|
};
|
|
@@ -76,7 +76,7 @@ unexpected character: 'y' at 2 pos, expected: 'o' at '' line`,
|
|
|
76
76
|
),
|
|
77
77
|
[`Test: scriptRetvalContains. Expected: ['heo']`],
|
|
78
78
|
[
|
|
79
|
-
`Failed: script retval contains ['heo'], array has no expected item 'heo'`,
|
|
79
|
+
`Failed: script retval contains ['heo'], array has no expected item 'heo', got: ['hey', 'bo']`,
|
|
80
80
|
`Failed: scriptRetvalContains, timeout while waiting to meet criteria`,
|
|
81
81
|
`Failed: scriptRetvalContains`,
|
|
82
82
|
],
|