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

Function createRectangleSpy

src/google-maps/testing/fake-google-map-utils.ts:320–335  ·  view source on GitHub ↗
(
  options: google.maps.RectangleOptions,
)

Source from the content-addressed store, hash-verified

318
319/** Creates a jasmine.SpyObj for a google.maps.Rectangle */
320export 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 */
338export function createRectangleConstructorSpy(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…