@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 CHANGED
@@ -123,7 +123,11 @@ function contains(
123
123
  })
124
124
  )
125
125
  ) {
126
- fail_(`${msg}, array has no expected item ${stringify(e)}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camperaid/watest",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Web Application Testsuite",
5
5
  "engines": {
6
6
  "node": ">=14.15.1"
@@ -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
  ],