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

Mutation invalidation #166

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

theobat
Copy link
Contributor

@theobat theobat commented Jun 6, 2017

@mattkrick

These are mostly test cases for the Cashay class. A small yet required fix is in Cashay.js about the _invalidation method passed as an argument to the mutationHandlers. This method cannot modify the global since it's tied to 'this' and 'this' is undefined when the method is called from outside the instance of Cashay (which is the case since it can be called from a mutationHandler).

Let me know if formatting or anything else is needed
More tests are coming

@coveralls
Copy link

coveralls commented Jun 6, 2017

Coverage Status

Coverage decreased (-6.3%) to 70.13% when pulling 0d75943 on theobat:mutation-invalidation into da2e138 on mattkrick:master.

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