We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad976a6 commit bf12e4dCopy full SHA for bf12e4d
test/unit/reducers/cacheReducer.spec.js
@@ -855,7 +855,7 @@ describe('cacheReducer', () => {
855
});
856
857
describe('UNSET_LISTENER', () => {
858
- it('handles unset listener', () => {
+ it('unset removes query but maintains in database cache', () => {
859
const doc1 = { key1: 'value1', id: 'testDocId1' }; // initial doc
860
861
// Initial seed
@@ -887,7 +887,7 @@ describe('cacheReducer', () => {
887
const pass2 = reducer(pass1, action2);
888
889
expect(pass2.cache.testStoreAs).to.eql(undefined);
890
- expect(pass2.cache.database[collection]).to.eql({});
+ expect(pass2.cache.database[collection]).to.eql({ [doc1.id]: doc1 });
891
892
893
it('handles a null payload.data', () => {
0 commit comments