Fix notification event names and allow welcome onboarding
This commit is contained in:
@@ -27,7 +27,14 @@ vi.mock('react-i18next', () => ({
|
||||
vi.mock('../../api', () => ({
|
||||
listNotificationLogs: vi.fn().mockResolvedValue([]),
|
||||
markNotificationLogs: vi.fn(),
|
||||
getEvents: vi.fn().mockResolvedValue([]),
|
||||
getEvents: vi.fn().mockResolvedValue([
|
||||
{
|
||||
id: 1,
|
||||
slug: 'demo-event',
|
||||
name: { de: 'Demo Event' },
|
||||
status: 'active',
|
||||
},
|
||||
]),
|
||||
}));
|
||||
|
||||
vi.mock('../../auth/tokens', () => ({
|
||||
@@ -131,5 +138,6 @@ describe('MobileNotificationsPage', () => {
|
||||
render(<MobileNotificationsPage />);
|
||||
|
||||
expect(await screen.findByText('All caught up')).toBeInTheDocument();
|
||||
expect(await screen.findByText('Demo Event')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user