Closed clownvary closed 7 years ago
per title, is there any way to test a method called times, like xx.toHaveBeenCalledOnce/twice, etc. Thanks.
xx.toHaveBeenCalledOnce/twice
expect(spy.calls).to.have.lengthOf(3)?
expect(spy.calls).to.have.lengthOf(3)
it works for me , thank u.
per title, is there any way to test a method called times, like
xx.toHaveBeenCalledOnce/twice
, etc. Thanks.