I am trying to test my collections with mocha like so:
it("should give a user access to tasks they have created", function () {
var tasks = Tasks.find({}).count();
expect(tasks).to.equal(1);
});
The problem is, Meteor doesn’t allow for callbacks in the find function. How I am able to wait for the .find to return anything before I assess the value? Right now it is always 0