Skip to content

Commit bf12e4d

Browse files
committed
chore: test update
1 parent ad976a6 commit bf12e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/reducers/cacheReducer.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ describe('cacheReducer', () => {
855855
});
856856

857857
describe('UNSET_LISTENER', () => {
858-
it('handles unset listener', () => {
858+
it('unset removes query but maintains in database cache', () => {
859859
const doc1 = { key1: 'value1', id: 'testDocId1' }; // initial doc
860860

861861
// Initial seed
@@ -887,7 +887,7 @@ describe('cacheReducer', () => {
887887
const pass2 = reducer(pass1, action2);
888888

889889
expect(pass2.cache.testStoreAs).to.eql(undefined);
890-
expect(pass2.cache.database[collection]).to.eql({});
890+
expect(pass2.cache.database[collection]).to.eql({ [doc1.id]: doc1 });
891891
});
892892

893893
it('handles a null payload.data', () => {

0 commit comments

Comments
 (0)