chore: upgrade @emotion (#14454)

This commit is contained in:
Jesse Yang
2021-05-04 15:26:16 -07:00
committed by GitHub
parent d138b4407d
commit 23014e9233
26 changed files with 1965 additions and 4941 deletions

View File

@@ -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 };
}

View File

@@ -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);