redux-devtools/extension/test/app/containers/App.spec.js
Nathan Bierema ebb0818093
chore(extension): switch to Jest (#679)
* Start converting to jest

* Use toMatch

* Finish

* Remove commented out code

* Remove @babel/register
2020-12-19 15:01:09 -05:00

25 lines
712 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.js';
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>/
);
});
});