mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-27 00:23:56 +00:00
Feat: Show notes panel on crm page (#2320)
* Feat: Show notes panel on CRM page Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
committed by
GitHub
parent
75d05e55ae
commit
fe2af370e0
@@ -0,0 +1,24 @@
|
||||
import { getters } from '../../contactNotes';
|
||||
import notesData from './fixtures';
|
||||
|
||||
describe('#getters', () => {
|
||||
it('getAllNotesByContact', () => {
|
||||
const state = { records: { 1: notesData } };
|
||||
expect(getters.getAllNotesByContact(state)(1)).toEqual(notesData);
|
||||
});
|
||||
|
||||
it('getUIFlags', () => {
|
||||
const state = {
|
||||
uiFlags: {
|
||||
isFetching: true,
|
||||
isCreating: false,
|
||||
isDeleting: false,
|
||||
},
|
||||
};
|
||||
expect(getters.getUIFlags(state)).toEqual({
|
||||
isFetching: true,
|
||||
isCreating: false,
|
||||
isDeleting: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user