当前位置: 动力学知识库 > 问答 > 编程问答 >

Unit test $window.onscroll event angularjs

问题描述:

Insides one of my angularjs controller I am handling $window.onscroll event. Is there any way I can unit test this event? I am calling a service method inside the event. I want to test if the method has been called when the user scrolls the window.

分享给朋友:
您可能感兴趣的文章:
随机阅读: