diff --git a/apps/skolplattformen-sthlm/components/__tests__/Auth.test.js b/apps/skolplattformen-sthlm/components/__tests__/Auth.test.js deleted file mode 100644 index 7ad8202ce..000000000 --- a/apps/skolplattformen-sthlm/components/__tests__/Auth.test.js +++ /dev/null @@ -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() -} - -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() -})