Karma, PhantomJS and es6 Promises

前端 未结 5 1230
野的像风
野的像风 2021-02-05 01:06

I am writing a JavaScript library that uses the new es6 promises. I can test the library in Firefox because promises are defined. However, when I try to test my code with Karma

5条回答
  •  渐次进展
    2021-02-05 01:28

    This thread should help you. According to it, it seems you should try to use PhantomJS2 with ES6. You can also take a look to this project, which treat to the a near subject than yours.

    I hope it may help you

提交回复
热议问题