
committed by
Alex Rickabaugh

parent
eb9d431487
commit
abfde44afb
@ -23,7 +23,7 @@ import {asyncFallback} from './async_fallback';
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export function async(fn: Function): (done: any) => any {
|
||||
const _Zone: any = typeof Zone !== 'undefined' ? Zone : null;
|
||||
|
@ -12,7 +12,7 @@ import {ChangeDetectorRef, ComponentRef, DebugElement, ElementRef, NgZone, Rende
|
||||
/**
|
||||
* Fixture for debugging and testing a component.
|
||||
*
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export class ComponentFixture<T> {
|
||||
/**
|
||||
|
@ -635,6 +635,8 @@ export class TestBedViewEngine implements Injector, TestBed {
|
||||
*
|
||||
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
||||
* according to the compiler used.
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export const TestBed: TestBedStatic =
|
||||
ivyEnabled ? TestBedRender3 as any as TestBedStatic : TestBedViewEngine as any as TestBedStatic;
|
||||
@ -676,7 +678,7 @@ function _getTestBedViewEngine(): TestBedViewEngine {
|
||||
* eventually
|
||||
* becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
|
||||
*
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export function inject(tokens: any[], fn: Function): () => any {
|
||||
const testBed = getTestBed();
|
||||
|
@ -45,6 +45,8 @@ export type TestModuleMetadata = {
|
||||
|
||||
/**
|
||||
* Static methods implemented by the `TestBedViewEngine` and `TestBedRender3`
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface TestBedStatic {
|
||||
new (...args: any[]): TestBed;
|
||||
@ -54,8 +56,6 @@ export interface TestBedStatic {
|
||||
|
||||
/**
|
||||
* Reset the providers for the test injector.
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
resetTestEnvironment(): void;
|
||||
|
||||
|
Reference in New Issue
Block a user