-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve test coverage for store#findRecord() #3746
Improve test coverage for store#findRecord() #3746
Conversation
LGTM |
@irnc am I misunderstanding the bug you were running into? |
}); | ||
}); | ||
|
||
test("store#findRecord { reload: true } ignores cached record and reloads record from server", function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HeroicEric in this test could you also assert that shouldReloadRecord
is never called when { reload: true }
is passed into findRecord?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @HeroicEric this looks great! |
b337f57
to
0bef520
Compare
Thanks @HeroicEric |
…-record Improve test coverage for store#findRecord()
@HeroicEric Tests look good. I should have misread code, so my report is incorrect, based on how I read it right now. But there is definitely an issue for my app, which I can reproduce, but can not debug it right now because Chrome does not stop on breakpoint in |
@irnc try disabling sourcemaps in your chrome dev tools. |
Started working on fixing #3704 by trying to write a failing test but was not able to reproduce the issue.
Am I missing something?