diff --git a/frontend/apps/plans/__tests__/App.test.tsx b/frontend/apps/plans/__tests__/App.test.tsx deleted file mode 100644 index 1610e4ad..00000000 --- a/frontend/apps/plans/__tests__/App.test.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import { render, screen } from '@testing-library/react' -import { describe, expect, it } from 'vitest' - -import { createCommonContextTestData } from '../../../contexts/__tests__/utils' -import { CommonProvider } from '../../../contexts/CommonProvider' -import PlansApp from '../App' - -describe('Test PageApp app', () => { - it('empty state provided when currentHome is null and availableHomes is empty', () => { - const { config, currentUser } = createCommonContextTestData() - render( - console.log('Set home')} - > - - - ) - - expect(screen.getByText(/You are currently not assigned any homes/i)).toBeInTheDocument() - }) - - it('empty state matches snapshot', () => { - const { config, currentUser } = createCommonContextTestData() - - const { asFragment } = render( - console.log('Set home')} - > - - - ) - - expect(asFragment()).toMatchSnapshot() - }) - - it('normal state provided when currentHome is not null and availableHomes is empty', () => { - const { config, currentHome, currentUser } = createCommonContextTestData() - render( - console.log('Set home')} - > - - - ) - - expect(screen.getByText(/Plans/i)).toBeInTheDocument() - }) -}) diff --git a/frontend/apps/plans/__tests__/__snapshots__/App.test.tsx.snap b/frontend/apps/plans/__tests__/__snapshots__/App.test.tsx.snap deleted file mode 100644 index 469c3db2..00000000 --- a/frontend/apps/plans/__tests__/__snapshots__/App.test.tsx.snap +++ /dev/null @@ -1,49 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`Test PageApp app > empty state matches snapshot 1`] = ` - - - - - - - - - - - You are currently not assigned any homes - - - Please contact an admin. - - - - -`;