【发布时间】:2015-10-25 05:37:45
【问题描述】:
我正在编写一个 Angular 应用程序,它使用 Mozilla 的库 PDFJS。不幸的是,在执行应用程序的单元测试时,PhantomJS 似乎找不到 PDFJS-lib 的某些部分。
这是错误信息:
PhantomJS 1.9.8 (Linux 0.0.0) ERROR
TypeError: 'undefined' is not a function (near '...}.bind(this), REJECTION_TI...')
at /home/[...]/bower_components/pdfjs-dist/build/pdf.js:1222
由于我的 CI 基础架构,我需要使用 PhantomJS。
【问题讨论】:
标签: javascript angularjs unit-testing phantomjs pdfjs