mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
@@ -40,7 +40,7 @@ describe('MetricOption', () => {
|
||||
const factory = o => <MetricOption {...o} />;
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(factory(defaultProps));
|
||||
props = Object.assign({}, defaultProps);
|
||||
props = { ...defaultProps };
|
||||
});
|
||||
it('is a valid element', () => {
|
||||
expect(React.isValidElement(<MetricOption {...defaultProps} />)).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user