(type: string, angle: number)
| 33 | } |
| 34 | |
| 35 | function triggerOrientation(type: string, angle: number) { |
| 36 | (window.screen.orientation.type as string) = type; |
| 37 | (window.screen.orientation.angle as number) = angle; |
| 38 | |
| 39 | window.dispatchEvent(new Event('orientationchange')); |
| 40 | } |
| 41 | |
| 42 | it('should return current window orientation', () => { |
| 43 | const hook = getHook(); |
no outgoing calls
no test coverage detected
searching dependent graphs…