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

Add a "fetchHasChanged" method #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add a "fetchHasChanged" method #26

wants to merge 1 commit into from

Conversation

idolize
Copy link

@idolize idolize commented Jul 16, 2015

This allows use of toPromise() when constructing fetchResult objects manually inside a store without relying on the store's this.fetch().

Very important for unit testing.

This allows use of [`toPromise()`](http://martyjs.org/api/stores/index.html#fetch-result-toPromise) when constructing `fetchResult` objects [manually](http://martyjs.org/api/stores/index.html#fetch_pending) inside a store without relying on the store's `this.fetch()`.

Very important for unit testing.
@taion
Copy link
Member

taion commented Jul 16, 2015

Is this only for testing? I wonder if we can add it to some sort of test support library instead, if that's the case.

@idolize
Copy link
Author

idolize commented Jul 16, 2015

Testing is the main use case most likely, but there could be other times someone would want to use a toPromise(). For now a test library would be useful.

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.

2 participants