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
406 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()} storeApplicationMetaData={jest.fn()} />)
.toJSON();
2017-02-23 22:18:23 +01:00
expect(tree).toMatchSnapshot();
});