| 234 | |
| 235 | /** Creates a jasmine.SpyObj for a google.maps.Polyline */ |
| 236 | export function createPolylineSpy( |
| 237 | options: google.maps.PolylineOptions, |
| 238 | ): jasmine.SpyObj<google.maps.Polyline> { |
| 239 | const polylineSpy = jasmine.createSpyObj('google.maps.Polyline', [ |
| 240 | 'addListener', |
| 241 | 'getDraggable', |
| 242 | 'getEditable', |
| 243 | 'getPath', |
| 244 | 'getVisible', |
| 245 | 'setMap', |
| 246 | 'setOptions', |
| 247 | 'setPath', |
| 248 | ]); |
| 249 | polylineSpy.addListener.and.returnValue({remove: () => {}}); |
| 250 | return polylineSpy; |
| 251 | } |
| 252 | |
| 253 | /** Creates a jasmine.Spy to watch for the constructor of a google.maps.Polyline */ |
| 254 | export function createPolylineConstructorSpy( |