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.
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.