88 cleanup ,
99 userEvent ,
1010} from '@mongodb-js/testing-library-compass' ;
11- import { spy , stub } from 'sinon' ;
11+ import { spy } from 'sinon' ;
1212import type { SinonSpy } from 'sinon' ;
1313import { expect } from 'chai' ;
1414import { Provider } from 'react-redux' ;
@@ -18,7 +18,6 @@ import { SettingsModal } from './modal';
1818
1919describe ( 'SettingsModal' , function ( ) {
2020 let onCloseSpy : SinonSpy ;
21- let fetchSettingsSpy : SinonSpy ;
2221 let onSaveSpy : SinonSpy ;
2322 let onSelectTabSpy : SinonSpy ;
2423 let renderSettingsModal : (
@@ -27,7 +26,6 @@ describe('SettingsModal', function () {
2726
2827 beforeEach ( function ( ) {
2928 onCloseSpy = spy ( ) ;
30- fetchSettingsSpy = stub ( ) . resolves ( ) ;
3129 onSaveSpy = spy ( ) ;
3230 onSelectTabSpy = spy ( ) ;
3331
@@ -40,11 +38,11 @@ describe('SettingsModal', function () {
4038 < SettingsModal
4139 isOpen = { false }
4240 onClose = { onCloseSpy }
43- fetchSettings = { fetchSettingsSpy }
4441 onSave = { onSaveSpy }
4542 onSelectTab = { onSelectTabSpy }
46- loadingState = "ready"
43+ selectedTab = { undefined }
4744 hasChangedSettings = { false }
45+ isOIDCEnabled = { false }
4846 { ...props }
4947 />
5048 </ Provider >
@@ -59,7 +57,6 @@ describe('SettingsModal', function () {
5957 it ( 'renders nothing until it is open and loaded' , function ( ) {
6058 renderSettingsModal ( { isOpen : false } ) ;
6159
62- expect ( fetchSettingsSpy . called ) . to . be . false ;
6360 const container = screen . queryByTestId ( 'settings-modal' ) ;
6461 expect ( container ) . to . not . exist ;
6562 } ) ;
0 commit comments