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