Skip to content
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

Merged
merged 1 commit into from
Sep 10, 2015

Conversation

HeroicEric
Copy link
Member

Started working on fixing #3704 by trying to write a failing test but was not able to reproduce the issue.

Am I missing something?

@wecc
Copy link
Contributor

wecc commented Sep 10, 2015

LGTM

@HeroicEric
Copy link
Member Author

@irnc am I misunderstanding the bug you were running into?

});
});

test("store#findRecord { reload: true } ignores cached record and reloads record from server", function() {
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bmac
Copy link
Member

bmac commented Sep 10, 2015

Thanks @HeroicEric this looks great!

@HeroicEric HeroicEric force-pushed the improve-tests-for-store-find-record branch from b337f57 to 0bef520 Compare September 10, 2015 23:21
@bmac
Copy link
Member

bmac commented Sep 10, 2015

Thanks @HeroicEric

bmac added a commit that referenced this pull request Sep 10, 2015
…-record

Improve test coverage for store#findRecord()
@bmac bmac merged commit b570b9d into emberjs:master Sep 10, 2015
@HeroicEric HeroicEric deleted the improve-tests-for-store-find-record branch September 11, 2015 00:26
@irnc
Copy link

irnc commented Sep 11, 2015

@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 store.js (which is served in ES6 from source maps for some reason).

@bmac
Copy link
Member

bmac commented Sep 11, 2015

@irnc try disabling sourcemaps in your chrome dev tools.

screen shot 2015-09-11 at 2 37 39 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants