如何使用Mocha中的流星中使用镜像数据来检查速度



我正在使用Velocity Mocha测试我的流星应用程序。当我像下面的测试案例运行测试案例时,它正在通过。

describe("categories server", function(){
  it("should return categories", function(done){
    setTimeout(done,1500);
    chai.assert(Cats.find({}).count() > 0);
    this.timeout(1500);
  });    

但是,在客户端,我将获得空白的类似测试收集。请任何帮助都是有效的。我是新手测试。

  1. 执行 meteor mongo进入应用程序的mongodb外壳。
  2. 在MongoDB Shell中执行use mocha,以切换到Mocha Mirror使用的数据库。
  3. 用以下内容验证数据库的内容: db.cats.find().pretty()

最新更新