mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
refactor: remove old Icon component (#15690)
* remove old Icon component * remove mock fn's
This commit is contained in:
committed by
GitHub
parent
070f0b6cb2
commit
5d86b8dde6
@@ -29,13 +29,6 @@ const mockedProps = {
|
||||
title: 'Error title',
|
||||
};
|
||||
|
||||
jest.mock('../Icon', () => ({
|
||||
__esModule: true,
|
||||
default: ({ name }: { name: string }) => (
|
||||
<div data-test="icon" data-name={name} />
|
||||
),
|
||||
}));
|
||||
|
||||
test('should render', () => {
|
||||
const { container } = render(<BasicErrorAlert {...mockedProps} />);
|
||||
expect(container).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user