Open Mojova opened 9 years ago
You're right. I need to fix support for $inject
. I had it in there once but apparently broke it in an update somewhere along the line. Sorry. I'll get it fixed.
Just submitted a pull request to fix this issue, @tennisgent. Thanks for this library, btw.
@Aakkosti Looks like @tennisgent merged my pull request in. Do you want to grab the latest (I believe it's untagged right now), verify that it's fixed, and close this?
You can annotate dependencies in angular with the $inject property:
This isn't compatible with 1.0.7 of quickmock. Running the library through a debugger reveals that the problem is at line 35:
depName is undefined for all i.
Changing the loop in question into
works for the first iteration. For subsequent tests in the suite, it seems to revert to "normal" behavior, i.e. no $inject.