Skip to content

Commit

Permalink
SIMSBIOHUB-500/140: Purge Old SIMS Code (#1249)
Browse files Browse the repository at this point in the history
Purge Old SIMS Code
  • Loading branch information
KjartanE authored Mar 19, 2024
1 parent 2500bac commit 8df78ed
Show file tree
Hide file tree
Showing 51 changed files with 23 additions and 2,582 deletions.
1 change: 1 addition & 0 deletions app/src/components/alert/FormikErrorSnackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const FormikErrorSnackbar = () => {
}

setOpenSnackbar({ open: true, msg: 'One or more fields are invalid.' });
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [submitCount, isSubmitting]);

const closeSnackBar = () =>
Expand Down
18 changes: 0 additions & 18 deletions app/src/components/attachments/EditFileWithMeta.tsx

This file was deleted.

65 changes: 0 additions & 65 deletions app/src/components/boundary/FullScreenViewMapDialog.tsx

This file was deleted.

44 changes: 0 additions & 44 deletions app/src/components/chips/SubmitStatusChip.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions app/src/components/data-grid/DatePickerDataGrid.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/components/dialog/ComponentDialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ const renderContainer = ({ dialogTitle, open = true }: { dialogTitle: string; op
};

describe('ComponentDialog', () => {
it.skip('matches the snapshot when not open', () => {
const { baseElement } = renderContainer({ dialogTitle: 'this is a test', open: false });

expect(baseElement).toMatchSnapshot();
});

it.skip('matches snapshot when open', () => {
const { baseElement } = renderContainer({ dialogTitle: 'this is a test' });

expect(baseElement).toMatchSnapshot();
});

it('calls the onClose prop when `Close` button is clicked', async () => {
const { findByText } = renderContainer({ dialogTitle: 'this is a test' });

Expand Down
58 changes: 0 additions & 58 deletions app/src/components/dialog/DialogVisual.tsx

This file was deleted.

69 changes: 0 additions & 69 deletions app/src/components/dialog/ErrorDialog.test.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions app/src/components/dialog/YesNoDialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,6 @@ const renderContainer = ({
};

describe('EditDialog', () => {
it.skip('matches the snapshot when not open', () => {
const { baseElement } = renderContainer({ dialogTitle: 'this is a test', dialogText: 'this is text', open: false });

expect(baseElement).toMatchSnapshot();
});

it.skip('matches the snapshot when open, with no error message', () => {
const { baseElement } = renderContainer({ dialogTitle: 'this is a test', dialogText: 'this is text' });

expect(baseElement).toMatchSnapshot();
});

it.skip('matches snapshot when open, with error message', () => {
const { baseElement } = renderContainer({ dialogTitle: 'this is a test', dialogText: 'This is an error' });

expect(baseElement).toMatchSnapshot();
});

it('calls the onYes prop when `Yes` button is clicked', async () => {
const { findByText } = renderContainer({ dialogTitle: 'this is a test', dialogText: 'this is text' });

Expand Down
Loading

0 comments on commit 8df78ed

Please sign in to comment.