joyent-portal/packages/cp-frontend/test/unit/containers/services/topology.js
Sérgio Ramos 19b1176435 style: lint
2017-09-07 16:29:41 +01:00

23 lines
536 B
JavaScript

/**
* @jest-environment jsdom
*/
import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import { ServicesTopology } from '@containers/services/topology.js';
import { Router, Store, services } from '../../mocks';
it('renders <ServicesTopology /> without throwing', () => {
const tree = renderer
.create(
<Store>
<Router>
<ServicesTopology services={services} />
</Router>
</Store>
)
.toJSON();
expect(tree).toMatchSnapshot();
});