MCPcopy Create free account
hub / github.com/angular/components / createPolylineSpy

Function createPolylineSpy

src/google-maps/testing/fake-google-map-utils.ts:236–251  ·  view source on GitHub ↗
(
  options: google.maps.PolylineOptions,
)

Source from the content-addressed store, hash-verified

234
235/** Creates a jasmine.SpyObj for a google.maps.Polyline */
236export 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 */
254export function createPolylineConstructorSpy(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected