Skip to content

Unregistered functions #32

@levbrie

Description

@levbrie

@zgleicher asked: For the test, "shouldn't treat the parameters in nested functions as dependencies" in DI.spec.js simple, parameters 'app' and 'login' have not been registered. 'login' does not even exist. Should it be Auth and User instead?

My response:

@zgleicher Yes, it probably should be Auth and User but your tests should pass regardless. I believe at some point I renamed app and and long to Auth and User, but ended up neglecting this test because it passes anyway, since this particular test is testing how many arguments your inject method has parsed and making sure it doesn't parse nested functions, rather than actually making use of any of those nested injected functions as it does in other tests. Good catch!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions