MCPcopy Index your code
hub / github.com/angular/components / createCircleSpy

Function createCircleSpy

src/google-maps/testing/fake-google-map-utils.ts:361–378  ·  view source on GitHub ↗
(
  options: google.maps.CircleOptions,
)

Source from the content-addressed store, hash-verified

359
360/** Creates a jasmine.SpyObj for a google.maps.Circle */
361export function createCircleSpy(
362 options: google.maps.CircleOptions,
363): jasmine.SpyObj<google.maps.Circle> {
364 const circleSpy = jasmine.createSpyObj('google.maps.Circle', [
365 'addListener',
366 'getCenter',
367 'getRadius',
368 'getDraggable',
369 'getEditable',
370 'getVisible',
371 'setMap',
372 'setOptions',
373 'setCenter',
374 'setRadius',
375 ]);
376 circleSpy.addListener.and.returnValue({remove: () => {}});
377 return circleSpy;
378}
379
380/** Creates a jasmine.Spy to watch for the constructor of a google.maps.Circle */
381export function createCircleConstructorSpy(

Callers 1

map-circle.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…