Skip to content

Commit 30c3b43

Browse files
committed
chore: update test
1 parent c711ac7 commit 30c3b43

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/unit/reducers/cacheReducer.spec.js

+13
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,19 @@ describe('cacheReducer', () => {
529529
expect(pass1.cache.testStoreAs.ordered[0][1]).to.eql(doc1.id);
530530
expect(pass2.cache.testStoreAs.ordered[0][1]).to.eql(doc2.id);
531531
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({});
532545
});
533546

534547
it('overrides synchronously moves to new query', () => {

0 commit comments

Comments
 (0)