mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Adds two new helper functions that can be used when unit testing Angular services that depend upon upgraded AngularJS services, or vice versa. The functions return a module (AngularJS or NgModule) that is configured to wire up the Angular and AngularJS injectors without the need to actually bootstrap a full hybrid application. This makes it simpler and faster to unit test services. PR Close #16848
3 lines
197 B
TypeScript
3 lines
197 B
TypeScript
export declare function createAngularJSTestingModule(angularModules: any[]): string;
|
|
|
|
export declare function createAngularTestingModule(angularJSModules: string[], strictDi?: boolean): Type<any>;
|