• 概要
@angular/common/testing

provideLocationMocks

function
stable

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