diff --git a/spec/components/listselector.spec.ts b/spec/components/listselector.spec.ts index c806f0253..88483ab2e 100644 --- a/spec/components/listselector.spec.ts +++ b/spec/components/listselector.spec.ts @@ -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(); }); diff --git a/spec/components/settingspanel.spec.ts b/spec/components/settingspanel.spec.ts index 99cb17ab6..46778f883 100644 --- a/spec/components/settingspanel.spec.ts +++ b/spec/components/settingspanel.spec.ts @@ -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']();