mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-04 11:53:30 +03:00
Fix tests
This commit is contained in:
parent
26f38527eb
commit
7e19e81c04
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render, screen, within } from '@testing-library/react';
|
import { render, screen, within } from '@testing-library/react';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import configureStore from '../../../src/window/store/windowStore';
|
import configureStore from '../../../src/devpanel/store/panelStore';
|
||||||
import App from '../../../src/app/App';
|
import App from '../../../src/app/App';
|
||||||
|
|
||||||
Object.defineProperty(window, 'matchMedia', {
|
Object.defineProperty(window, 'matchMedia', {
|
||||||
|
|
|
@ -20,16 +20,7 @@ describe('API', () => {
|
||||||
expect(message).toEqual({
|
expect(message).toEqual({
|
||||||
source: '@devtools-page',
|
source: '@devtools-page',
|
||||||
type: 'OPEN',
|
type: 'OPEN',
|
||||||
position: 'right',
|
position: 'window',
|
||||||
});
|
|
||||||
|
|
||||||
message = await listenMessage(() => {
|
|
||||||
window.__REDUX_DEVTOOLS_EXTENSION__.open('left');
|
|
||||||
});
|
|
||||||
expect(message).toEqual({
|
|
||||||
source: '@devtools-page',
|
|
||||||
type: 'OPEN',
|
|
||||||
position: 'left',
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user