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:
Nithin David Thomas
2021-06-14 09:49:17 +05:30
committed by GitHub
parent 75d05e55ae
commit fe2af370e0
17 changed files with 352 additions and 19 deletions

View File

@@ -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,
});
});
});