/
toHaveBeenCalledOnceWith.test.js.snap
37 lines (26 loc) 路 1.67 KB
/
toHaveBeenCalledOnceWith.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`.not.toHaveBeenCalledOnceWith fails if mock was invoked exactly once with the expected value 1`] = `
"<dim>expect(</><red>received</><dim>).not.toHaveBeenCalledOnceWith(</><green>expected</><dim>)</>
Expected mock function to have been called any amount of times but one with <green>\\"hello\\"</>, but it was called exactly once with <green>\\"hello\\"</>."
`;
exports[`.toHaveBeenCalledOnceWith fails if mock was invoked more than once, indicating how many times it was invoked 1`] = `
"<dim>expect(</><red>received</><dim>).toHaveBeenCalledOnceWith(</><green>expected</><dim>)</>
Expected mock function to have been called exactly once, but it was called:
<red>17</> times"
`;
exports[`.toHaveBeenCalledOnceWith fails if mock was never invoked indicating that it was invoked 0 times 1`] = `
"<dim>expect(</><red>received</><dim>).toHaveBeenCalledOnceWith(</><green>expected</><dim>)</>
Expected mock function to have been called exactly once, but it was called:
<red>0</> times"
`;
exports[`.toHaveBeenCalledOnceWith fails when given value is not a jest spy or mock 1`] = `
"<dim>expect(</><red>received</><dim>).toHaveBeenCalledOnceWith(</><green>expected</><dim>)</>
Matcher error: <red>\\"received\\"</> must be a mock or spy function
Received has type: function
Received has value: <red>[Function mock1]</>"
`;
exports[`.toHaveBeenCalledOnceWith fails when given value is not the expected one 1`] = `
"<dim>expect(</><red>received</><dim>).toHaveBeenCalledOnceWith(</><green>expected</><dim>)</>
Expected mock function to have been called exactly once with <red>\\"hello\\"</>, but it was called with:
<red>\\"not hello\\"</>"
`;