diff --git a/packages/client/src/components/GrantNotes.spec.js b/packages/client/src/components/GrantNotes.spec.js index 7218fe952..5673c8b9f 100644 --- a/packages/client/src/components/GrantNotes.spec.js +++ b/packages/client/src/components/GrantNotes.spec.js @@ -10,11 +10,11 @@ import { id } from '@/helpers/testHelpers'; const CURRENT_USER_ID = id(); const getMockNotes = (count, hasMoreCursor = null, userId = id()) => ({ - notes: Array.from(Array(count), () => ({ + notes: Array.from(Array(count), (el, i) => ({ id: id(), createdAt: new Date().toISOString(), isRevised: true, - text: 'Text', + text: `Text ${i}`, grant: {}, user: { id: userId, @@ -43,11 +43,18 @@ const mockStore = { 'grants/getNotesForGrant': vi.fn(), 'grants/getNotesForCurrentUser': vi.fn(), 'grants/saveNoteForGrant': vi.fn(), + 'grants/deleteGrantNoteForUser': vi.fn(), }, }; const store = createStore(mockStore); +const stubTextArea = { + template: '