@@ -23,6 +23,38 @@ Expected mock function to not have been last called with:
2323 <green>[Immutable.Map {a: {\\"b\\": \\"c\\"}}, Immutable.Map {a: {\\"b\\": \\"c\\"}}]</>"
2424`;
2525
26+ exports[`lastCalledWith works with Map 1`] = `
27+ "<dim>expect(<red>jest.fn()</><dim>).not.lastCalledWith(<green>expected</><dim>)
28+
29+ Expected mock function to not have been last called with:
30+ <green>[Map {1 => 2, 2 => 1}]</>"
31+ `;
32+
33+ exports[`lastCalledWith works with Map 2`] = `
34+ "<dim>expect(<red>jest.fn()</><dim>).lastCalledWith(<green>expected</><dim>)
35+
36+ Expected mock function to have been last called with:
37+ <green>[Map {\\"a\\" => \\"b\\", \\"b\\" => \\"a\\"}]</>
38+ But it was last called with:
39+ <red>[Map {1 => 2, 2 => 1}]</>"
40+ `;
41+
42+ exports[`lastCalledWith works with Set 1`] = `
43+ "<dim>expect(<red>jest.fn()</><dim>).not.lastCalledWith(<green>expected</><dim>)
44+
45+ Expected mock function to not have been last called with:
46+ <green>[Set {1, 2}]</>"
47+ `;
48+
49+ exports[`lastCalledWith works with Set 2`] = `
50+ "<dim>expect(<red>jest.fn()</><dim>).lastCalledWith(<green>expected</><dim>)
51+
52+ Expected mock function to have been last called with:
53+ <green>[Set {3, 4}]</>
54+ But it was last called with:
55+ <red>[Set {1, 2}]</>"
56+ `;
57+
2658exports[`lastCalledWith works with arguments that don't match 1`] = `
2759"<dim>expect(<red>jest.fn()</><dim>).lastCalledWith(<green>expected</><dim>)
2860
@@ -219,6 +251,38 @@ Expected mock function not to have been called with:
219251 <green>[Immutable.Map {a: {\\"b\\": \\"c\\"}}, Immutable.Map {a: {\\"b\\": \\"c\\"}}]</>"
220252`;
221253
254+ exports[`toHaveBeenCalledWith works with Map 1`] = `
255+ "<dim>expect(<red>jest.fn()</><dim>).not.toHaveBeenCalledWith(<green>expected</><dim>)
256+
257+ Expected mock function not to have been called with:
258+ <green>[Map {1 => 2, 2 => 1}]</>"
259+ `;
260+
261+ exports[`toHaveBeenCalledWith works with Map 2`] = `
262+ "<dim>expect(<red>jest.fn()</><dim>).toHaveBeenCalledWith(<green>expected</><dim>)
263+
264+ Expected mock function to have been called with:
265+ <green>[Map {\\"a\\" => \\"b\\", \\"b\\" => \\"a\\"}]</>
266+ But it was called with:
267+ <red>[Map {1 => 2, 2 => 1}]</>"
268+ `;
269+
270+ exports[`toHaveBeenCalledWith works with Set 1`] = `
271+ "<dim>expect(<red>jest.fn()</><dim>).not.toHaveBeenCalledWith(<green>expected</><dim>)
272+
273+ Expected mock function not to have been called with:
274+ <green>[Set {1, 2}]</>"
275+ `;
276+
277+ exports[`toHaveBeenCalledWith works with Set 2`] = `
278+ "<dim>expect(<red>jest.fn()</><dim>).toHaveBeenCalledWith(<green>expected</><dim>)
279+
280+ Expected mock function to have been called with:
281+ <green>[Set {3, 4}]</>
282+ But it was called with:
283+ <red>[Set {1, 2}]</>"
284+ `;
285+
222286exports[`toHaveBeenCalledWith works with arguments that don't match 1`] = `
223287"<dim>expect(<red>jest.fn()</><dim>).toHaveBeenCalledWith(<green>expected</><dim>)
224288
@@ -274,6 +338,38 @@ Expected mock function to not have been last called with:
274338 <green>[Immutable.Map {a: {\\"b\\": \\"c\\"}}, Immutable.Map {a: {\\"b\\": \\"c\\"}}]</>"
275339`;
276340
341+ exports[`toHaveBeenLastCalledWith works with Map 1`] = `
342+ "<dim>expect(<red>jest.fn()</><dim>).not.toHaveBeenLastCalledWith(<green>expected</><dim>)
343+
344+ Expected mock function to not have been last called with:
345+ <green>[Map {1 => 2, 2 => 1}]</>"
346+ `;
347+
348+ exports[`toHaveBeenLastCalledWith works with Map 2`] = `
349+ "<dim>expect(<red>jest.fn()</><dim>).toHaveBeenLastCalledWith(<green>expected</><dim>)
350+
351+ Expected mock function to have been last called with:
352+ <green>[Map {\\"a\\" => \\"b\\", \\"b\\" => \\"a\\"}]</>
353+ But it was last called with:
354+ <red>[Map {1 => 2, 2 => 1}]</>"
355+ `;
356+
357+ exports[`toHaveBeenLastCalledWith works with Set 1`] = `
358+ "<dim>expect(<red>jest.fn()</><dim>).not.toHaveBeenLastCalledWith(<green>expected</><dim>)
359+
360+ Expected mock function to not have been last called with:
361+ <green>[Set {1, 2}]</>"
362+ `;
363+
364+ exports[`toHaveBeenLastCalledWith works with Set 2`] = `
365+ "<dim>expect(<red>jest.fn()</><dim>).toHaveBeenLastCalledWith(<green>expected</><dim>)
366+
367+ Expected mock function to have been last called with:
368+ <green>[Set {3, 4}]</>
369+ But it was last called with:
370+ <red>[Set {1, 2}]</>"
371+ `;
372+
277373exports[`toHaveBeenLastCalledWith works with arguments that don't match 1`] = `
278374"<dim>expect(<red>jest.fn()</><dim>).toHaveBeenLastCalledWith(<green>expected</><dim>)
279375
0 commit comments