Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const printCalls = function(spy, name) {
- console.log('Printing calls, function:', name);
- let count = 0;
- for (let call of spy.getCalls()) {
- console.log(`call ${count++}:`, call.args);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement