Skip to content

Commit

Permalink
chore: remove outdated test, new library component seems to handle it
Browse files Browse the repository at this point in the history
DEVSU-2089
  • Loading branch information
kttkjl committed Oct 6, 2023
1 parent f28cbfc commit 8e3285a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions app/components/SvgImage/__tests__/SvgImage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from './mockData';
import SvgImage from '..';

jest.mock('react-virtualized-auto-sizer', () => ({ children }) => children({ height: 600, width: 600}));
jest.mock('react-virtualized-auto-sizer', () => ({ children }) => children({ height: 600, width: 600 }));

describe('SvgImage', () => {
test('It renders a normal SVG', async () => {
Expand Down Expand Up @@ -63,20 +63,4 @@ describe('SvgImage', () => {

expect(await screen.findByTestId('mock')).toBeInTheDocument();
});

test('It fails to render an SVG that is not formatted correctly', async () => {
let error;

try {
render(
<SvgImage
image={mockSVGFormatError}
/>,
);
} catch (err) {
error = err;
}

expect(error).not.toBeUndefined();
});
});

0 comments on commit 8e3285a

Please sign in to comment.