mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-14 21:56:55 +03:00
a418284a4a
* Start work * More work * stash * stash * stash * Eliminate relay * Fix * Define page script to content script messages * Define ContentScriptToPageScriptMessage * Not required * Fill out more types * More work on types * More type fixes * Add type * More improvements to types * More work on types * Fix more type errors * More changes * More work * Work * Fix build * Fix lint * Fix more lint * Fix bug * Fix tests
25 lines
710 B
JavaScript
25 lines
710 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>/
|
|
);
|
|
});
|
|
});
|