Answer the question
In order to leave comments, you need to log in
Why does karma give the error "TypeError: 'null' is not an object..."?
For modular assembly, browserify is used.
Test framework jasmine.
Test runner karma
Browser phantom.js
Everything works great until the code starts manipulating the DOM.
If the code contains the expression
var textHeader = document.getElementById('textHeader');
textHeader.innerHTML = "text in element";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question