From 3a6fcee0e62105de5d76ed10e82345097395a1d5 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 22 Sep 2016 10:32:17 -0700 Subject: [PATCH] docs(core): mark TestBed as stable api and add preliminary docs (#11767) TestBed was accidentaly ommited from the 'stable' api list during the API sweep before final. We do consider it to be stable. --- modules/@angular/core/testing/test_bed.ts | 8 +++++++- tools/public_api_guard/core/testing/index.d.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/@angular/core/testing/test_bed.ts b/modules/@angular/core/testing/test_bed.ts index 05b70271fa..e519228f8e 100644 --- a/modules/@angular/core/testing/test_bed.ts +++ b/modules/@angular/core/testing/test_bed.ts @@ -47,7 +47,13 @@ export type TestModuleMetadata = { }; /** - * @experimental + * @whatItDoes Configures and initializes environment for unit testing and provides methods for + * creating components and services in unit tests. + * @description + * + * TestBed is the primary api for writing unit tests for Angular applications and libraries. + * + * @stable */ export class TestBed implements Injector { /** diff --git a/tools/public_api_guard/core/testing/index.d.ts b/tools/public_api_guard/core/testing/index.d.ts index 48d5255583..3dbd951a74 100644 --- a/tools/public_api_guard/core/testing/index.d.ts +++ b/tools/public_api_guard/core/testing/index.d.ts @@ -56,7 +56,7 @@ export declare type MetadataOverride = { /** @experimental */ export declare function resetFakeAsyncZone(): void; -/** @experimental */ +/** @stable */ export declare class TestBed implements Injector { ngModule: Type; platform: PlatformRef;