We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bdadcd commit cfc91a0Copy full SHA for cfc91a0
src/matchers/mock/toBeRequestedWith.ts
@@ -353,7 +353,7 @@ const shortenJson = (
353
keyLimit = KEY_LIMIT
354
): ExpectWebdriverIO.JsonCompatible => {
355
if (JSON.stringify(obj).length < lengthLimit) {
356
- return obj as ExpectWebdriverIO.JsonCompatible
+ return obj
357
}
358
359
if (Array.isArray(obj)) {
src/utils.ts
@@ -186,7 +186,6 @@ export const compareText = (
186
187
188
189
- expected = expected as string | RegExp
190
if (expected instanceof RegExp) {
191
return {
192
value: actual,
0 commit comments