@teamkeel/testing-runtime 0.300.2 → 0.301.0
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
|
@@ -6,18 +6,15 @@ export async function toHaveAuthorizationError(received) {
|
|
|
6
6
|
pass: false,
|
|
7
7
|
message: () => "expected value to reject",
|
|
8
8
|
actual: v,
|
|
9
|
-
expected: {
|
|
10
|
-
code: "ERR_PERMISSION_DENIED",
|
|
11
|
-
},
|
|
12
9
|
};
|
|
13
10
|
} catch (err) {
|
|
14
11
|
return {
|
|
15
12
|
pass: err.code === "ERR_PERMISSION_DENIED",
|
|
16
13
|
message: () =>
|
|
17
|
-
`expected ${isNot ? "no " : ""}ERR_PERMISSION_DENIED error`,
|
|
14
|
+
`expected there to be ${isNot ? "no " : ""}ERR_PERMISSION_DENIED error`,
|
|
18
15
|
actual: err,
|
|
19
16
|
expected: {
|
|
20
|
-
|
|
17
|
+
...err,
|
|
21
18
|
},
|
|
22
19
|
};
|
|
23
20
|
}
|