mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-26 11:33:54 +03:00
25 lines
714 B
JavaScript
25 lines
714 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from '../../../src/app/stores/windowStore';
|
|
import App from '../../../src/app/containers/App';
|
|
|
|
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", () => {
|
|
expect(component.find('DevtoolsInspector').html()).toBeDefined();
|
|
});
|
|
|
|
it('should contain an empty action list', () => {
|
|
expect(component.find('ActionList').html()).toMatch(
|
|
/<div class="actionListRows-[0-9-]+"><\/div>/
|
|
);
|
|
});
|
|
});
|