()
| 6078 | } |
| 6079 | |
| 6080 | function butString() { |
| 6081 | switch (actual.calls.count()) { |
| 6082 | case 0: |
| 6083 | return 'But it was never called.\n\n'; |
| 6084 | case 1: |
| 6085 | return ( |
| 6086 | 'But the actual call was:\n' + |
| 6087 | prettyPrintedCalls.join(',\n') + |
| 6088 | '.\n' + |
| 6089 | getDiffs().join('\n') + |
| 6090 | '\n\n' |
| 6091 | ); |
| 6092 | default: |
| 6093 | return ( |
| 6094 | 'But the actual calls were:\n' + |
| 6095 | prettyPrintedCalls.join(',\n') + |
| 6096 | '.\n\n' |
| 6097 | ); |
| 6098 | } |
| 6099 | } |
| 6100 | |
| 6101 | return { |
| 6102 | pass: false, |
no test coverage detected