fix: 🐛 Removed auth-test

This commit is contained in:
Viktor Sarström 2021-11-29 10:45:02 +01:00
parent 8d9cfe2de4
commit 06c29d75da
1 changed files with 0 additions and 28 deletions

View File

@ -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()
})