From 06c29d75da5e6b503b98c949bf32f78027ee7548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sarstr=C3=B6m?= Date: Mon, 29 Nov 2021 10:45:02 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Removed=20auth-test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/__tests__/Auth.test.js | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 apps/skolplattformen-sthlm/components/__tests__/Auth.test.js 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 7ad8202c..00000000 --- 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() -})