@@ -19,16 +19,12 @@ vi.mock('electron', () => {
1919describe ( 'DisplayManager' , function ( ) {
2020 let displayManager
2121 let mockSettings
22- let mockLog
2322
2423 beforeEach ( function ( ) {
2524 vi . clearAllMocks ( )
2625 mockSettings = {
2726 get : vi . fn ( )
2827 }
29- mockLog = {
30- warn : vi . fn ( )
31- }
3228 } )
3329
3430 describe ( 'Mathematical Calculations' , function ( ) {
@@ -37,7 +33,7 @@ describe('DisplayManager', function () {
3733 if ( key === 'allScreens' ) return true
3834 return null
3935 } )
40- displayManager = new DisplayManager ( mockSettings , mockLog )
36+ displayManager = new DisplayManager ( mockSettings )
4137 } )
4238
4339 it ( 'centers window horizontally correctly' , function ( ) {
@@ -94,7 +90,7 @@ describe('DisplayManager', function () {
9490 if ( key === 'allScreens' ) return true
9591 return null
9692 } )
97- displayManager = new DisplayManager ( mockSettings , mockLog )
93+ displayManager = new DisplayManager ( mockSettings )
9894 } )
9995
10096 it ( 'getWindowPosition returns consistent windowed positioning' , function ( ) {
@@ -163,7 +159,7 @@ describe('DisplayManager', function () {
163159
164160 describe ( 'Settings Integration' , function ( ) {
165161 beforeEach ( function ( ) {
166- displayManager = new DisplayManager ( mockSettings , mockLog )
162+ displayManager = new DisplayManager ( mockSettings )
167163 } )
168164
169165 it ( 'uses cursor position when allScreens is true' , function ( ) {
@@ -213,12 +209,11 @@ describe('DisplayManager', function () {
213209 if ( key === 'allScreens' ) return true
214210 return null
215211 } )
216- displayManager = new DisplayManager ( mockSettings , mockLog )
212+ displayManager = new DisplayManager ( mockSettings )
217213 } )
218214
219- it ( 'handles invalid displayID by falling back and logging a warning ' , ( ) => {
215+ it ( 'handles invalid displayID by falling back to cursor display ' , ( ) => {
220216 const target = displayManager . getTargetDisplay ( 5 )
221- expect ( mockLog . warn ) . toHaveBeenCalledWith ( 'Stretchly: invalid displayID 5, falling back to cursor display' )
222217 expect ( screen . getDisplayNearestPoint ) . toHaveBeenCalled ( )
223218 target . id . should . equal ( 0 )
224219 } )
0 commit comments