in karma test have
controller.js
var somevalue = false;
test.js
expect(somevalue).tobe(true);
this gives me output: expected false equal true.
but if change statement should pass (changing .tobe(false)). get:
test.js
expect(somevalue).tobe(false);
typeerror: undefined not constructor (evaluating 'angular.element.cleandata(cleanupnodes)')
the test passing, had underlying problems aside test. (angular , angular-mock versions not matching)