( options: google.maps.RectangleOptions, )
| 318 | |
| 319 | /** Creates a jasmine.SpyObj for a google.maps.Rectangle */ |
| 320 | export function createRectangleSpy( |
| 321 | options: google.maps.RectangleOptions, |
| 322 | ): jasmine.SpyObj<google.maps.Rectangle> { |
| 323 | const rectangleSpy = jasmine.createSpyObj('google.maps.Rectangle', [ |
| 324 | 'addListener', |
| 325 | 'getBounds', |
| 326 | 'getDraggable', |
| 327 | 'getEditable', |
| 328 | 'getVisible', |
| 329 | 'setMap', |
| 330 | 'setOptions', |
| 331 | 'setBounds', |
| 332 | ]); |
| 333 | rectangleSpy.addListener.and.returnValue({remove: () => {}}); |
| 334 | return rectangleSpy; |
| 335 | } |
| 336 | |
| 337 | /** Creates a jasmine.Spy to watch for the constructor of a google.maps.Rectangle */ |
| 338 | export function createRectangleConstructorSpy( |
no outgoing calls
no test coverage detected
searching dependent graphs…