fix: 🐛 Removed auth-test
This commit is contained in:
parent
8d9cfe2de4
commit
06c29d75da
|
@ -1,28 +0,0 @@
|
|||
import { useApi } from '@skolplattformen/hooks'
|
||||
import React from 'react'
|
||||
import { render } from '../../utils/testHelpers'
|
||||
import { Auth } from '../auth.component'
|
||||
|
||||
jest.mock('.../../data/schoolPlatforms', () => ({
|
||||
...jest.requireActual('../../data/schoolPlatforms'),
|
||||
}))
|
||||
|
||||
const setup = () => {
|
||||
useApi.mockReturnValue({
|
||||
api: { on: jest.fn(), off: jest.fn() },
|
||||
isLoggedIn: false,
|
||||
})
|
||||
|
||||
const navigation = {
|
||||
navigate: jest.fn(),
|
||||
}
|
||||
|
||||
return render(<Auth navigation={navigation} />)
|
||||
}
|
||||
|
||||
test('renders a random fun argument state', () => {
|
||||
const screen = setup()
|
||||
|
||||
expect(screen.getByText(/öppna skolplattformen/i)).toBeTruthy()
|
||||
expect(screen.getByText(/det [a-zåäö]+ alternativet/i)).toBeTruthy()
|
||||
})
|
Loading…
Reference in New Issue