Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Dec 10, 2024
1 parent ad708ce commit b2e0324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/components/listselector.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('ListSelector', () => {

it('returns false if selected item does not exist', () => {
const result = listSelector.selectItem('notExistingKey');
expect(listSelector.getSelectedItem()).toBeUndefined();
expect(listSelector.getSelectedItem()).toBeNull();
expect(result).toBeFalsy();
});

Expand Down
4 changes: 2 additions & 2 deletions spec/components/settingspanel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ describe('SettingsPanel', () => {
const selectBox = new SelectBox();
const closeDropdownSpy = jest.spyOn(selectBox, 'closeDropdown');

settingsPanel.getActivePage().addComponent(new SettingsPanelItem(new Label(), selectBox));
settingsPanel.getActivePage().addComponent(new SettingsPanelItem(new Label(), new VolumeSlider()));
settingsPanel.getActivePage().addComponent(new SettingsPanelItem({ label: new Label(), setting: selectBox }));
settingsPanel.getActivePage().addComponent(new SettingsPanelItem({ label: new Label(), setting: new VolumeSlider() }));

settingsPanel['hideHoveredSelectBoxes']();

Expand Down

0 comments on commit b2e0324

Please sign in to comment.