mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: upgrade @emotion (#14454)
This commit is contained in:
@@ -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