diff --git a/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap b/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap index 9f749cf23a..7fcf9dc024 100644 --- a/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap +++ b/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap @@ -22,112 +22,22 @@ exports[`renders correctly if no application 1`] = ` `; exports[`renders correctly with permissions 1`] = ` -
+
+

+ Loading... +

-
-

- -
- - apps - -
- test-app -
-

-
-
- - - - - - - -
-
-
-
-
-

- app description -

-

- Created: - - Invalid Date - -

-
+ className="MuiLinearProgress-bar MuiLinearProgress-barColorPrimary MuiLinearProgress-bar1Indeterminate" + style={Object {}} + /> +
`; @@ -178,47 +88,12 @@ exports[`renders correctly without permission 1`] = ` apps
- test-app
- - - - - - - -
+ />
- app description +

Created: - Invalid Date + 02/02/2022

diff --git a/frontend/src/component/application/__tests__/application-edit-component-test.js b/frontend/src/component/application/__tests__/application-edit-component-test.js index f57babdbd6..e78573c722 100644 --- a/frontend/src/component/application/__tests__/application-edit-component-test.js +++ b/frontend/src/component/application/__tests__/application-edit-component-test.js @@ -1,12 +1,9 @@ -import React from 'react'; - import { ThemeProvider } from '@material-ui/core'; -import ClientApplications from '../application-edit-component'; +import ApplicationEdit from '../ApplicationEdit'; import renderer from 'react-test-renderer'; import { MemoryRouter } from 'react-router-dom'; import { ADMIN } from '../../providers/AccessProvider/permissions'; import theme from '../../../themes/main-theme'; - import { createFakeStore } from '../../../accessStoreFake'; import AccessProvider from '../../providers/AccessProvider/AccessProvider'; @@ -14,13 +11,17 @@ test('renders correctly if no application', () => { const tree = renderer .create( - Promise.resolve({})} - storeApplicationMetaData={jest.fn()} - deleteApplication={jest.fn()} - history={{}} - locationSettings={{ locale: 'en-GB' }} - /> + + + Promise.resolve({})} + storeApplicationMetaData={jest.fn()} + deleteApplication={jest.fn()} + history={{}} + locationSettings={{ locale: 'en-GB' }} + /> + + ) .toJSON(); @@ -34,7 +35,7 @@ test('renders correctly without permission', () => { - Promise.resolve({})} storeApplicationMetaData={jest.fn()} deleteApplication={jest.fn()} @@ -97,7 +98,7 @@ test('renders correctly with permissions', () => { - Promise.resolve({})} storeApplicationMetaData={jest.fn()} history={{}}