2020-10-26 15:18:23 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { mount } from 'enzyme';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import configureStore from '../../../src/app/stores/windowStore';
|
2021-08-25 07:22:54 +03:00
|
|
|
import App from '../../../src/app/containers/App';
|
2020-10-26 15:18:23 +03:00
|
|
|
|
|
|
|
const store = configureStore(store);
|
|
|
|
const component = mount(
|
|
|
|
<Provider store={store}>
|
|
|
|
<App position="devtools-left" />
|
|
|
|
</Provider>
|
|
|
|
);
|
|
|
|
|
|
|
|
describe('App container', () => {
|
|
|
|
it("should render inspector monitor's component", () => {
|
2020-12-19 23:01:09 +03:00
|
|
|
expect(component.find('DevtoolsInspector').html()).toBeDefined();
|
2020-10-26 15:18:23 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should contain an empty action list', () => {
|
|
|
|
expect(component.find('ActionList').html()).toMatch(
|
2021-06-20 06:08:00 +03:00
|
|
|
/<div class="actionListRows-[0-9-]+"><\/div>/
|
2020-10-26 15:18:23 +03:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|