mirror of
https://github.com/apache/superset.git
synced 2026-04-16 22:55:52 +00:00
chore: upgrade @emotion (#14454)
This commit is contained in:
@@ -55,7 +55,7 @@ function setup(overrides) {
|
||||
...overrides,
|
||||
};
|
||||
const wrapper = shallow(<MetricsControl {...props} />);
|
||||
const component = wrapper.dive().shallow();
|
||||
const component = wrapper.shallow();
|
||||
return { wrapper, component, onChange };
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ function verify(sourceProp: string) {
|
||||
|
||||
async function setup({
|
||||
extraProps,
|
||||
baseControl = MetricsControl,
|
||||
baseControl = MetricsControl as WithAsyncVerificationOptions['baseControl'],
|
||||
onChange,
|
||||
}: Partial<WithAsyncVerificationOptions> & {
|
||||
extraProps?: ExtraControlProps;
|
||||
@@ -121,7 +121,7 @@ describe('VerifiedMetricsControl', () => {
|
||||
});
|
||||
|
||||
const child = wrapper.find(MetricsControl);
|
||||
child.props().onChange(['abc']);
|
||||
child.props().onChange?.(['abc']);
|
||||
|
||||
expect(child.length).toBe(1);
|
||||
expect(mockOnChange).toBeCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user