• Overview

This site uses cookies from Google to deliver its services and to analyze traffic.

@angular/common/testing

provideLocationMocks

function

Returns mock providers for the Location and LocationStrategy classes. The mocks are helpful in tests to fire simulated location events.

API

  
    function provideLocationMocks(): Provider[];
  
  

provideLocationMocks

Returns mock providers for the Location and LocationStrategy classes. The mocks are helpful in tests to fire simulated location events.

@returnsProvider[]
Jump to details