mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 02:00:01 -03:30
move router setup to RootProvider
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { main } from '../src/index';
|
||||
|
||||
const render = template => mount(template);
|
||||
const render = template => mount(
|
||||
<MemoryRouter>
|
||||
{template}
|
||||
</MemoryRouter>
|
||||
);
|
||||
|
||||
describe('index.jsx', () => {
|
||||
test('index.jsx loads without issue', () => {
|
||||
|
||||
Reference in New Issue
Block a user