@opra/testing 0.32.4 → 0.32.6
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.
|
@@ -11,7 +11,8 @@ class ApiExpectError extends api_expect_base_js_1.ApiExpectBase {
|
|
|
11
11
|
expected = { message: expected };
|
|
12
12
|
else if (expected instanceof RegExp)
|
|
13
13
|
expected = { message: expect.stringMatching(expected) };
|
|
14
|
-
|
|
14
|
+
else
|
|
15
|
+
expected = (0, common_1.omitNullish)(expected);
|
|
15
16
|
this._expect(this.response.body.errors).toEqual(expect.arrayContaining([expect.objectContaining(expected)]));
|
|
16
17
|
}
|
|
17
18
|
catch (e) {
|
|
@@ -8,7 +8,8 @@ export class ApiExpectError extends ApiExpectBase {
|
|
|
8
8
|
expected = { message: expected };
|
|
9
9
|
else if (expected instanceof RegExp)
|
|
10
10
|
expected = { message: expect.stringMatching(expected) };
|
|
11
|
-
|
|
11
|
+
else
|
|
12
|
+
expected = omitNullish(expected);
|
|
12
13
|
this._expect(this.response.body.errors).toEqual(expect.arrayContaining([expect.objectContaining(expected)]));
|
|
13
14
|
}
|
|
14
15
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/testing",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.6",
|
|
4
4
|
"description": "Opra testing package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"clean:cover": "rimraf ../../coverage/testing"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@opra/client": "^0.32.
|
|
30
|
-
"@opra/common": "^0.32.
|
|
29
|
+
"@opra/client": "^0.32.6",
|
|
30
|
+
"@opra/common": "^0.32.6",
|
|
31
31
|
"ansi-colors": "^4.1.3",
|
|
32
32
|
"rule-judgment": "^1.1.5"
|
|
33
33
|
},
|