Skip to content

Commit

Permalink
#4936-Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beisenova-aliya committed Jul 16, 2024
1 parent 314b93b commit 77d34a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ketcher-react/src/script/ui/state/hotkeys.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Provider } from 'react-redux';
import createStore from '../state';
import { initKeydownListener } from './hotkeys';
import { act } from 'react-dom/test-utils';
import { Pool, SGroup } from 'ketcher-core';

jest.mock('react-intersection-observer', () => {
return {
Expand Down Expand Up @@ -56,7 +57,7 @@ function renderWithMockStore(component) {
struct: () => {
return {
atoms: { keys: () => new Set() },
sgroups: { keys: () => new Set() },
sgroups: new Pool<SGroup>(),
};
},
render: { ctab: {} },
Expand Down

0 comments on commit 77d34a6

Please sign in to comment.