Groups
Groups
Sign in
Groups
Groups
Sinon.JS
Conversations
About
Send feedback
Help
How to test inner methods of the high-order functions
36 views
Skip to first unread message
Chang Lung
unread,
Aug 16, 2017, 6:07:51 AM
8/16/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sinon.JS
I have a high order function like this,
foo
()=>{
bar
.
boo
()
}
How can I write the testing for boo method is called or not? thank you!
Carl Erik Kopseng
unread,
Aug 18, 2017, 2:21:54 AM
8/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sinon.JS
Spy on bar.boo and call foo. Then assert bar.boo.calledOnce
Reply all
Reply to author
Forward
0 new messages