When we have $ctrl
created by $componentController
, how to mock static members of a class?
let $ctrl = $componentController("funny-component", null);
When we have $ctrl
created by $componentController
, how to mock static members of a class?
let $ctrl = $componentController("funny-component", null);
Since I was trying to dig deep into AngularJS, I thought I’d give tests a go. Then I ran into Jasmine. And Intern. And Karma. And it wails about no timestamps.