Testing collections with Mocha

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

I’ve been trying to find out for weeks now… so far, I have not found any real answer. Check my question from earlier today… I think I am asking the same thing :slight_smile: