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!