1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
unleash.unleash/frontend/src/component/application/__tests__/application-edit-component-test.js

15 lines
365 B
JavaScript
Raw Normal View History

2017-02-23 22:18:23 +01:00
import React from 'react';
import ClientApplications from '../application-edit-component';
import renderer from 'react-test-renderer';
jest.mock('react-mdl');
test('renders correctly if no application', () => {
const tree = renderer.create(
<ClientApplications fetchApplication={jest.fn()} />
).toJSON();
expect(tree).toMatchSnapshot();
});