import { isMobileDevice } from '@client/utils/commonUtils' ; describe ( 'Common Utils Test' , ( ) => { beforeEach ( ( ) => { ; ( isMobileDevice as jest . Mock ) . mockRestore ( ) ; } ) ; it ( 'Should simulate Mobile Devise' , ( ) => { const mobileDevise = isMobileDevice ( ) ; expect ( mobileDevise ) . toBe ( true ) ; } ) ; it ( 'Should Simulate Desktop Devise' , ( ) => { global . window . outerWidth = 1920 ; const mobileDevise = isMobileDevice ( ) ; expect ( mobileDevise ) . toBe ( false ) ; } ) ; } ) ;