我正在使用Velocity Mocha测试我的流星应用程序。当我像下面的测试案例运行测试案例时,它正在通过。
describe("categories server", function(){
it("should return categories", function(done){
setTimeout(done,1500);
chai.assert(Cats.find({}).count() > 0);
this.timeout(1500);
});
但是,在客户端,我将获得空白的类似测试收集。请任何帮助都是有效的。我是新手测试。
- 执行
meteor mongo
进入应用程序的mongodb外壳。 - 在MongoDB Shell中执行
use mocha
,以切换到Mocha Mirror使用的数据库。 - 用以下内容验证数据库的内容:
db.cats.find().pretty()
。