P
P
Peter2016-06-03 13:39:58
Angular
Peter, 2016-06-03 13:39:58

How to include html page in unit test?

On the client, the angular.js framework.
For tests I use karma, phantom.js and mocha
On one of the pages a video is played using videojs, which is initialized by id.
When I run the test, I get the error 'TypeError: The element or ID supplied is not valid. (videojs)'
As I understand it, karma-ng-html2js-preprocessor can help to fix this error, but I couldn't configure this plugin.
Please tell me how to make videojs get id from markup.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question