mirror of
https://github.com/yldio/copilot.git
synced 2024-12-12 13:00:04 +02:00
32 lines
683 B
JavaScript
32 lines
683 B
JavaScript
|
|
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
|
|
import React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
import 'jest-styled-components';
|
|
|
|
import { InstancesTooltip } from '@containers/instances/tooltip.js';
|
|
import { Router, Store, instance } from '../../mocks';
|
|
|
|
it('renders <InstancesTooltip /> without throwing', () => {
|
|
const tree = renderer
|
|
.create(
|
|
<Store>
|
|
<Router>
|
|
<InstancesTooltip
|
|
instancesTooltip={{
|
|
show: true,
|
|
position: {},
|
|
type: 'healthy',
|
|
instance
|
|
}}
|
|
/>
|
|
</Router>
|
|
</Store>
|
|
)
|
|
.toJSON();
|
|
expect(tree).toMatchSnapshot();
|
|
});
|