Hi China,

Are you aware that the else case will never be fired?
For the test, it will be hard to test, as there are no inputs to this 
function, but you can create a mock or spy for someService, and check if it 
gets called.
Then use the mock/spy to pass in a known value, and you can test that in a 
mock/spy of execUpdate

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/525be6b2-f8eb-4fd1-9e41-c6d64797d268%40googlegroups.com.

Reply via email to