Closed samhatoum closed 9 years ago
I would like to use this using a jest-like interface:
expect(Meteor.calls[0].length).to.be.(1)
or:
expect(Meteor.calls).to.have.been.called(0).times
expect(Meteor.calls).to.have.been.calledWith('someCall')
With Jasmine this is how you do this:
beforeEach(function () {
spyOn(Meteor, 'call').and.callThrough();
});
doh!
I knew that :p
I currently do this way: