fix: fix tests

This commit is contained in:
Christian Landgren 2021-09-01 09:57:06 +02:00
parent 03eab44fc9
commit 485db25807
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import {
useNotifications,
useSchedule,
useMenu,
useTimetable,
} from '@skolplattformen/api-hooks'
import { render } from '../../utils/testHelpers'
import React from 'react'
@ -35,6 +36,7 @@ beforeEach(() => {
useNews.mockReturnValueOnce({ data: [], status: 'loaded' })
useSchedule.mockReturnValueOnce({ data: [], status: 'loaded' })
useMenu.mockReturnValueOnce({ data: [], status: 'loaded' })
useTimetable.mockReturnValueOnce({ data: [], status: 'loaded' })
useNavigation.mockReturnValue({ navigate: jest.fn(), setOptions: jest.fn() })
})