@@ -227,3 +227,86 @@ exports[`asymmetric matcher error 16`] = `
227227 " message" : " expected 'hello' to deeply equal StringContaining{…}" ,
228228}
229229`;
230+
231+ exports[`asymmetric matcher error 17`] = `
232+ {
233+ " actual" : " hello" ,
234+ " diff" : null ,
235+ " expected" : " StringContaining " xx " " ,
236+ " message" : " expected error to match asymmetric matcher" ,
237+ }
238+ `;
239+
240+ exports[`asymmetric matcher error 18`] = `
241+ {
242+ " actual" : " hello" ,
243+ " diff" : " - Expected:
244+ stringContainingCustom <xx >
245+
246+ + Received:
247+ "hello"",
248+ "expected": "stringContainingCustom<xx >",
249+ "message": "expected error to match asymmetric matcher",
250+ }
251+ `;
252+
253+ exports[`asymmetric matcher error 19`] = `
254+ {
255+ " actual" : " hello" ,
256+ " diff" : null ,
257+ " expected" : " StringContaining " ll " " ,
258+ " message" : " expected error not to match asymmetric matcher" ,
259+ }
260+ `;
261+
262+ exports[`asymmetric matcher error 20`] = `
263+ {
264+ " actual" : " hello" ,
265+ " diff" : " - Expected:
266+ stringContainingCustom <ll >
267+
268+ + Received:
269+ "hello"",
270+ "expected": "stringContainingCustom<ll >",
271+ "message": "expected error not to match asymmetric matcher",
272+ }
273+ `;
274+
275+ exports[`asymmetric matcher error 21`] = `
276+ {
277+ " actual" : " [Error: hello]" ,
278+ " diff" : " - Expected:
279+ StringContaining " ll"
280+
281+ + Received :
282+ [Error : hello ]" ,
283+ " expected" : " StringContaining " ll " " ,
284+ " message" : " expected error to match asymmetric matcher" ,
285+ }
286+ `;
287+
288+ exports[`asymmetric matcher error 22`] = `
289+ {
290+ " actual" : " [Error: hello]" ,
291+ " diff" : " - Expected:
292+ stringContainingCustom <ll >
293+
294+ + Received:
295+ [Error: hello]",
296+ "expected": "stringContainingCustom<ll >",
297+ "message": "expected error to match asymmetric matcher",
298+ }
299+ `;
300+
301+ exports[`asymmetric matcher error 23`] = `
302+ {
303+ " actual" : " [Error: hello]" ,
304+ " diff" : " - Expected:
305+ [Function MyError1 ]
306+
307+ + Received :
308+ [Error : hello ]" ,
309+ " expected" : " [Function MyError1]" ,
310+ " message" : " expected error to be instance of MyError1" ,
311+ }
312+ `;
0 commit comments