Expected a spy, but got Function

前端 未结 3 999
臣服心动
臣服心动 2020-12-10 10:37

I am trying to implement a test (1) for this module (2).
My purpose is to check if the collection is fetched when a particular event is triggered.
As you can see fr

3条回答
  •  醉话见心
    2020-12-10 11:07

    I had this bug because I had two versions of sinon loaded, or possibly i wasn't initialising sinon-jasmine correctly. When I explicitly loaded sinon and then sinon jasmine in my spec setup, it started running correctly.

提交回复
热议问题