Skip to content

Commit

Permalink
Udate tests
Browse files Browse the repository at this point in the history
Signed-off-by: cosa65 <[email protected]>
  • Loading branch information
cosa65 committed Jan 4, 2024
1 parent e433fe0 commit a171181
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ describe('ComponentActions', () => {

const dropdown = component.find(Dropdown);
expect(dropdown.length).toEqual(1);
expect(dropdown.props().menu.type.name).toEqual('Menu');
expect(dropdown.props().menu.props.children.length).toEqual(3);
expect(dropdown.props().overlay.type.name).toEqual('Menu');
expect(dropdown.props().overlay.props.children.length).toEqual(3);
});

it('Renders correctly when there are no selected genes', () => {
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('ComponentActions', () => {
</Provider>,
);

const menuButtons = component.find(Dropdown).props().menu;
const menuButtons = component.find(Dropdown).props().overlay;
menuButtons.props.children[0].props.onClick();

// Wait for side-effect to propagate (properties loading and loaded).
Expand Down Expand Up @@ -154,7 +154,7 @@ describe('ComponentActions', () => {
</Provider>,
);

const menuButtons = component.find(Dropdown).props().menu;
const menuButtons = component.find(Dropdown).props().overlay;
menuButtons.props.children[1].props.onClick();

// Wait for side-effect to propagate (genes loaded).
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('ComponentActions', () => {
</Provider>,
);

const menuButtons = component.find(Dropdown).props().menu;
const menuButtons = component.find(Dropdown).props().overlay;
menuButtons.props.children[2].props.onClick();

// Wait for side-effect to propagate (properties loading and loaded).
Expand Down

0 comments on commit a171181

Please sign in to comment.