-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't test custom factories #169
Comments
No, I would expect it to work (seems to in a simple JSBin). Can you share the moduleFor and test code? |
@rwjblue, I've replicated your example within ember-cli and it works just fine (as you mentioned). There's probably something specific to my project that is causing it to fail. Closing the issue in the mean time. Thanks |
@rwjblue got to the bottom of the issue:
This was throwing the error mentioned above when running It might be the expected behavior. |
In my app I've crated a folder called
requests
and it contains one file calledlogin
.In my app I'm able to use:
container.lookup('request:login')
and it resolved correctly.In my unit test however, using moduleFor('request:login') throws an error message:
Is moduleFor only reserved for ember base objects?
The text was updated successfully, but these errors were encountered: