import { HttpInterceptor } from '@angular/common/http'; import { Type } from '@angular/core'; import { UofxTestBedBasicModule } from './testbed.module'; import { UofxTestBedBasicSpy } from './testbed.spy'; /** * @publicApi * Exclusive to UOF unit test tools. * * Example: * ``` * const moduleDef = { * declarations: [ * MyComponent * ] * } * UofxTestBed.Module.init(moduleDef) * .setUpBasic() * .configureTestingModule(); * * beforeEach(() => { * fixture = TestBed.createComponent(MyComponent); * comp = fixture.componentInstance; * }); * ``` */ export declare abstract class UofxTestBed { protected static _spy: UofxTestBedBasicSpy; protected static _module: UofxTestBedBasicModule; static get Spy(): UofxTestBedBasicSpy; static get Module(): UofxTestBedBasicModule; static overrideProviders(component: any, providers: Array): void; /** * Get service instance or spy. * * Example: * ``` * routerSpy = UofxTestBed.getService(Router) * activatedRouteSpy = UofxTestBed.getService(ActivatedRoute) * ``` */ static getService(type: Type): T; /** * Get http interceptor instance * * Example: * ``` * const interceptor = UofxTestBed.getInterceptorInstance( * TestBed.get(HTTP_INTERCEPTORS), * ErrorInterceptor * ) as ErrorInterceptor * ``` */ static getInterceptorInstance(interceptors: Array, type: any): HttpInterceptor; /** * Rest arguments spy. * * Example: * ``` * let spy1 = spyOn(comp, 'method1'); * let spy2 = spyOn(comp, 'method2'); * UofxTestBed.resetSpyCalls(spy1, spy2); * ``` */ static resetSpyCalls(...objects: Array): void; private static executeResetSpyCalls; }