mirror of
https://github.com/lingble/chatwoot.git
synced 2026-01-12 23:35:20 +00:00
- UI will show the breach in the conversation list. - UI will show the breach in the conversation header. Fixes: https://linear.app/chatwoot/issue/CW-3146/update-the-ui-to-show-the-breach-in-the-conversation-list Fixes: https://linear.app/chatwoot/issue/CW-3144/ui-update-to-show-the-breachgoing-to-breach
27 lines
566 B
JavaScript
27 lines
566 B
JavaScript
import { getters } from '../../sla';
|
|
import SLAs from './fixtures';
|
|
|
|
describe('#getters', () => {
|
|
it('getSLA', () => {
|
|
const state = { records: SLAs };
|
|
expect(getters.getSLA(state)).toEqual(SLAs);
|
|
});
|
|
|
|
it('getUIFlags', () => {
|
|
const state = {
|
|
uiFlags: {
|
|
isFetching: true,
|
|
isCreating: false,
|
|
isUpdating: false,
|
|
isDeleting: false,
|
|
},
|
|
};
|
|
expect(getters.getUIFlags(state)).toEqual({
|
|
isFetching: true,
|
|
isCreating: false,
|
|
isUpdating: false,
|
|
isDeleting: false,
|
|
});
|
|
});
|
|
});
|