(props: Partial<Campaign>)
| 21 | const openModal = jest.fn(); |
| 22 | |
| 23 | const createCampaign = (props: Partial<Campaign>): Campaign => ({ |
| 24 | id: 'c1', |
| 25 | referenceId: post.id, |
| 26 | state: CampaignState.Completed, |
| 27 | type: CampaignType.Post, |
| 28 | createdAt: new Date('2026-10-01'), |
| 29 | endedAt: new Date('2026-10-08'), |
| 30 | flags: { budget: 14000, spend: 14000, impressions: 1000, clicks: 30 }, |
| 31 | post, |
| 32 | user: loggedUser, |
| 33 | ...props, |
| 34 | }); |
| 35 | |
| 36 | const renderManager = (campaigns: Campaign[]) => { |
| 37 | mockGraphQL({ |