fix(common/testing): remove internal MockLocationStrategy from common/testing (#9562)
BREAKING CHANGE: MockLocationStrategy was intended to be internal only and is now removed from the `@angular/common/testing` public api. Use `SpyLocation` from `@angular/common/testing` for location testing.
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {MockLocationStrategy} from '@angular/common/testing';
|
||||
import {COMPILER_PROVIDERS, DirectiveResolver, ViewResolver, XHR} from '@angular/compiler';
|
||||
import {MockDirectiveResolver, MockViewResolver, TestComponentBuilder, TestComponentRenderer} from '@angular/compiler/testing';
|
||||
import {APPLICATION_COMMON_PROVIDERS, APP_ID, NgZone, PLATFORM_COMMON_PROVIDERS, PLATFORM_INITIALIZER, RootRenderer} from '@angular/core';
|
||||
@ -76,6 +75,5 @@ export const TEST_SERVER_APPLICATION_PROVIDERS: Array<any /*Type | Provider | an
|
||||
/* @ts2dart_Provider */ {provide: ViewResolver, useClass: MockViewResolver},
|
||||
/* @ts2dart_Provider */ {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},
|
||||
TestComponentBuilder,
|
||||
/* @ts2dart_Provider */ {provide: NgZone, useFactory: createNgZone},
|
||||
/* @ts2dart_Provider */ {provide: LocationStrategy, useClass: MockLocationStrategy}
|
||||
/* @ts2dart_Provider */ {provide: NgZone, useFactory: createNgZone}
|
||||
];
|
||||
|
Reference in New Issue
Block a user