Open XiaonuoGantan opened 8 years ago
Wherever you are parsing JSON, seems you have a value that is specified as undefined
which is not a valid JSON value. PhantomJS may be handling this differently than Chrome?
This SO Q/A discusses JSON and undefined
: http://stackoverflow.com/questions/13796751/json-undefined-value-type
There is a solution for this problem?
I have the same issue, when I run using PhantomJS browser i get error, but when I run using ChromeHeadless tests run ok.
Help!
Regards,
When karma runs the tests using Chrome, then the tests run successfully. When karma runs them using PhantomJS, however, the following error will be triggered:
My
package.json
file:My
karma.conf.js
file: