You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Function failed as expected, but could not find message snippet '${expectedMessage}'. Saw '${err.message}' instead.`,
26
+
// Match the snippet against either the message OR the error name. Spec-
27
+
// correct DOMException errors carry the type ('DataError',
28
+
// 'NotSupportedError', etc.) on `err.name`, not in the human-readable
29
+
// message — so existing tests that check for the type-name snippet
30
+
// continue to pass.
31
+
constfound=
32
+
err.message.includes(expectedMessage)||
33
+
err.name.includes(expectedMessage);
34
+
assert.isTrue(
35
+
found,
36
+
`Function failed as expected, but could not find snippet '${expectedMessage}' in message or name. Saw message='${err.message}' name='${err.name}' instead.`,
0 commit comments