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

Function createKmlLayerSpy

src/google-maps/testing/fake-google-map-utils.ts:448–464  ·  view source on GitHub ↗
(
  options?: google.maps.KmlLayerOptions,
)

Source from the content-addressed store, hash-verified

446
447/** Creates a jasmine.SpyObj for a google.maps.KmlLayer */
448export function createKmlLayerSpy(
449 options?: google.maps.KmlLayerOptions,
450): jasmine.SpyObj<google.maps.KmlLayer> {
451 const kmlLayerSpy = jasmine.createSpyObj('google.maps.KmlLayer', [
452 'addListener',
453 'getDefaultViewport',
454 'getMetadata',
455 'getStatus',
456 'getUrl',
457 'getZIndex',
458 'setOptions',
459 'setUrl',
460 'setMap',
461 ]);
462 kmlLayerSpy.addListener.and.returnValue({remove: () => {}});
463 return kmlLayerSpy;
464}
465
466/** Creates a jasmine.Spy to watch for the constructor of a google.maps.KmlLayer */
467export function createKmlLayerConstructorSpy(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected