mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-23 20:07:40 +02:00
15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
|
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();
|
||
|
});
|