Skip to content

Commit

Permalink
refactor: research update form unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
iSCJT authored and benfurber committed Oct 30, 2024
1 parent 0c91bb6 commit 3d1df36
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/Research/Content/Common/ResearchUpdate.form.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ import { ResearchUpdateForm } from './ResearchUpdate.form'

const Theme = testingThemeStyles

vi.mock('src/common/hooks/useCommonStores', () => {
return {
useCommonStores: () => ({
stores: {
researchStore: {
updateUploadStatus: {
Start: false,
Images: false,
Files: false,
Database: false,
Complete: false,
},
isTitleThatReusesSlug: vi.fn(),
unlockResearchUpdate: vi.fn(),
},
},
}),
}
})

vi.mock('src/stores/Research/research.store', () => {
return {
useResearchStore: () => ({
Expand Down

0 comments on commit 3d1df36

Please sign in to comment.