Changeset View
Changeset View
Standalone View
Standalone View
lib/reducers/message-reducer.test.js
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | describe('SET_MESSAGE_STORE_MESSAGES', () => { | ||||
const { messageStore: updatedMessageStore } = reduceMessageStore( | const { messageStore: updatedMessageStore } = reduceMessageStore( | ||||
{ | { | ||||
messages: {}, | messages: {}, | ||||
threads, | threads, | ||||
local: {}, | local: {}, | ||||
currentAsOf: 1234567890123, | currentAsOf: 1234567890123, | ||||
}, | }, | ||||
{ | { | ||||
type: 'SET_MESSAGE_STORE_MESSAGES', | type: 'SET_CLIENT_DB_STORE', | ||||
payload: clientDBMessages, | payload: { | ||||
currentUserID: '', | |||||
drafts: [], | |||||
threadStore: { | |||||
threadInfos: {}, | |||||
}, | |||||
messages: clientDBMessages, | |||||
}, | |||||
}, | }, | ||||
{ | { | ||||
[88471]: createPendingThread({ | [88471]: createPendingThread({ | ||||
viewerID: '', | viewerID: '', | ||||
threadType: threadTypes.LOCAL, | threadType: threadTypes.LOCAL, | ||||
}), | }), | ||||
}, | }, | ||||
); | ); | ||||
Show All 14 Lines |