MCPcopy Create free account
hub / github.com/EsperoTech/yaade / butString

Function butString

client/src/utils/jasmine/jasmine.js:6080–6099  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers 1

toHaveBeenCalledOnceWithFunction · 0.70

Calls 2

countMethod · 0.80
getDiffsFunction · 0.70

Tested by

no test coverage detected