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

13 lines
351 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', () => {
2017-08-28 21:40:44 +02:00
const tree = renderer.create(<ClientApplications fetchApplication={jest.fn()} />).toJSON();
2017-02-23 22:18:23 +01:00
expect(tree).toMatchSnapshot();
});