Hi all,
I have a problem with karma. I have to test a method on controller that
runs a dependence injection.
$ctrl.load = () => {
model.load($ctrl.accountId)
.then(data => {
$ctrl.data = data;
})
}
model.load is a dependency ("export default function TestController(model))"
When I run my test, for example: ctrl.load(), it failure because model is
not defined.
How I run $ctrl.load and read from file spec $ctrl.data ?
I am very confused!
Tnx!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.