feat: Implement drag & drop for metrics and filters labels (#12184)

This commit is contained in:
Kamil Gabryjelski
2020-12-25 05:46:37 +01:00
committed by GitHub
parent 74f3faf1cd
commit f3ab1f41ee
13 changed files with 251 additions and 22 deletions

View File

@@ -120,7 +120,9 @@ describe('VerifiedMetricsControl', () => {
onChange: mockOnChange,
});
const child = wrapper.find(MetricsControl);
const child = wrapper.find(MetricsControl) as ReactWrapper<{
onChange: (str: string[]) => void;
}>;
child.props().onChange(['abc']);
expect(child.length).toBe(1);