You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a real test for one of my models, and I want to test a method with various parameters and verify that the result is the one expected.
The problem is that this method calls Meteor.call, which is stubbed as emptyFunction.
I assume I should override that stub to return fake values, and I'll need another unit test to test the "call_url" server method.
But when I try this, the test fail, here it is:
Any idea why it's not throwing an error properly ? I'm not seeing the error message thrown by the method, and I can't get .should.throwError to work.
Also, how can I get more useful traceback messages ? those aren't helping.
The text was updated successfully, but these errors were encountered:
Hi,
I'm writing a real test for one of my models, and I want to test a method with various parameters and verify that the result is the one expected.
The problem is that this method calls Meteor.call, which is stubbed as emptyFunction.
I assume I should override that stub to return fake values, and I'll need another unit test to test the "call_url" server method.
But when I try this, the test fail, here it is:
Any idea why it's not throwing an error properly ? I'm not seeing the error message thrown by the method, and I can't get .should.throwError to work.
Also, how can I get more useful traceback messages ? those aren't helping.
The text was updated successfully, but these errors were encountered: