1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00
awx/__tests__/index.test.jsx

18 lines
414 B
React
Raw Normal View History

2019-04-12 00:07:46 +03:00
import React from 'react';
2019-01-02 10:28:24 +03:00
import { mount } from 'enzyme';
2019-04-12 00:07:46 +03:00
import { MemoryRouter } from 'react-router-dom';
2019-04-10 18:16:20 +03:00
import { main } from '../src/index';
2018-11-02 20:45:11 +03:00
2019-04-12 00:07:46 +03:00
const render = template => mount(
<MemoryRouter>
{template}
</MemoryRouter>
);
2018-11-02 20:45:11 +03:00
2019-01-02 10:28:24 +03:00
describe('index.jsx', () => {
2019-04-10 18:16:20 +03:00
test('index.jsx loads without issue', () => {
const wrapper = main(render);
expect(wrapper.find('RootProvider')).toHaveLength(1);
});
2018-11-02 20:45:11 +03:00
});