小编vil*_*ole的帖子

使用pouchdb设置karma单元测试

我想为使用pouchdb + angular-pouchdb的角度应用程序设置单元测试.但当我跑:

karma start karma.conf.js

我收到以下错误:

PhantomJS 1.9.7(Mac OS X)错误

TypeError:'undefined'不是函数(评估'eventEmitter [method] .bind(eventEmitter)')

at .../public/bower_components/pouchdb/dist/pouchdb-nightly.js:5758

角度应用程序在浏览器中运行良好,我所有的karma.conf.js文件都包含相同的依赖项,所以我不明白为什么pouchdb-nightly.js会有一个未定义的函数.我错过了什么?

unit-testing phantomjs angularjs pouchdb karma-runner

4
推荐指数
1
解决办法
1167
查看次数