feat: Split reconnect logic PR (store) (#9520)
# Pull Request Template ## Description This PR includes store filter parts split from this [Reconnect PR](https://github.com/chatwoot/chatwoot/pull/9453)
This commit is contained in:
@@ -81,4 +81,18 @@ describe('#getters', () => {
|
||||
};
|
||||
expect(getters.getMeta(state)).toEqual({ unreadCount: 1 });
|
||||
});
|
||||
|
||||
it('getNotificationFilters', () => {
|
||||
const state = {
|
||||
notificationFilters: {
|
||||
page: 1,
|
||||
status: 'unread',
|
||||
type: 'all',
|
||||
sortOrder: 'desc',
|
||||
},
|
||||
};
|
||||
expect(getters.getNotificationFilters(state)).toEqual(
|
||||
state.notificationFilters
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user