How to test a Meteor call in a client unit test in Jasmine? -
i'm using meteor 1.2.1
, sanjo:jasmine@0.20.2
. expect test (running on client side) fail, looks it's never executed.
describe('compresslistofintegers', function () { it('should return string', function (done) { meteor.call('compresslistofintegers', [1,2,3,4,5,6,7,8,9], function(err, data) { expect(data).toequal(jasmine.any(number)); done(); }); }); });
how can test meteor.call? added bonus: should test meteor methods client? alternatives?
Comments
Post a Comment