mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
test: Fixes act errors in ErrorBoundary test (#21412)
This commit is contained in:
parent
14cd8a2160
commit
a5e1811ee4
@ -20,6 +20,8 @@ import React from 'react';
|
|||||||
import { render, screen } from 'spec/helpers/testing-library';
|
import { render, screen } from 'spec/helpers/testing-library';
|
||||||
import ErrorBoundary from '.';
|
import ErrorBoundary from '.';
|
||||||
|
|
||||||
|
jest.mock('src/components/Icons/Icon', () => () => <span />);
|
||||||
|
|
||||||
const mockedProps = {
|
const mockedProps = {
|
||||||
children: <span>Error children</span>,
|
children: <span>Error children</span>,
|
||||||
onError: () => null,
|
onError: () => null,
|
||||||
|
Loading…
Reference in New Issue
Block a user