This issue relates to #41 as I'm wanting to mock/fake the StoreCache for Component tests.
When dispatching (see vuex-cache.js#L297, #L305) this is bound to the store not the store cache. Given the cache.dispatch method doesn't use this, this bug probably hasn't surfaced yet. However when mocking/faking store.cache the cache methods are being called with the wrong this.
This issue relates to #41 as I'm wanting to mock/fake the
StoreCache
for Component tests.When dispatching (see vuex-cache.js#L297, #L305)
this
is bound to thestore
not the store cache. Given thecache.dispatch
method doesn't usethis
, this bug probably hasn't surfaced yet. However when mocking/fakingstore.cache
the cache methods are being called with the wrongthis
.