-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Store empty after using makeList #147
Comments
well looks like you want to do this:
or this:
|
do you see what you were doing that was a bit off? |
I do. Updating my tests and will check if the store contains my items. |
Alright, so here is my factories:
I still have the error about no model found for question. |
what do you get for
|
Is there anything I need to specify to make sure it is pushed to the store? |
so it's making the questions .. but the controller must not be picking up the property change .. since its not a property .. might it be returning the peekAll results BEFORE you make the questions? |
No, I explicitly call the method under test after setting up the questions. Is there some asynchronous work here? |
not with make and makeList .. but maybe I would have to see your whole setup .. your missing something |
|
var controller = this.subject(); // then
is this what you meant to do? controller.findConditions(); when that method not on the contoller and then the other method ( findOrderQuestionLastQuestionAnswered ) never returned anything .. strange
|
Yes I actually edited the names to make it simpler. Both are now named findConditions. |
Hi,
I have few factories that I use to populate items for my application store.
The controller method I want to unit test use the store to find a specific question and verify some properties on it.
I understood that makeList would create a model item and push it to the store. Neverthless I can see that my store is empty and always returns 'no model found for 'modelName'.
What am I missing here?
The text was updated successfully, but these errors were encountered: