We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c711ac7 commit 30c3b43Copy full SHA for 30c3b43
test/unit/reducers/cacheReducer.spec.js
@@ -529,6 +529,19 @@ describe('cacheReducer', () => {
529
expect(pass1.cache.testStoreAs.ordered[0][1]).to.eql(doc1.id);
530
expect(pass2.cache.testStoreAs.ordered[0][1]).to.eql(doc2.id);
531
expect(pass3.cache.testStoreAs.ordered[0][1]).to.eql(doc1.id);
532
+
533
+ // overrides must be cleared
534
+ expect(pass2.cache.databaseOverrides).to.eql({
535
+ testCollection: {
536
+ testDocId1: {
537
+ id: 'testDocId1',
538
+ key1: 'value1',
539
+ key2: 'other',
540
+ path: 'testCollection',
541
+ },
542
543
+ });
544
+ expect(pass3.cache.databaseOverrides).to.eql({});
545
});
546
547
it('overrides synchronously moves to new query', () => {
0 commit comments