Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

Issues unit testing controllerAs: logging controller returns a promise

I'm trying to test a controller which uses the controllerAs syntax. My problem is that when I try to test a function on the controller, I get "Expected undefined to be defined." Controller (...
Tracy B.'s user avatar
1 vote
0 answers
113 views

How to unit test variables on the parent scope when using controllerAs syntax in Angular?

I'm trying to unit test a controller in which I'm using Angular's controllerAs syntax. I also use this to access variables in the parent scope. For example, if the parent controller is called parent, ...
Vincent's user avatar
  • 5,475