I am using velocity + mocha for testing my meteor app. On client side when I run test case like below, it is passing.
describe("categories server", function(){
it("should return categories", function(done){
setTimeout(done,1500);
chai.assert(Cats.find({}).count() > 0);
this.timeout(1500);
});
But on Client side I'm getting blank collection for the similar test.And in mocha iframe all fields dependent on db are empty. Please any help is much appriciated. I'm new in testing.
meteor mongo
to get into the MongoDB shell of your app.use mocha
in the MongoDB shell to switch to the database that the Mocha mirror uses.db.cats.find().pretty()
.