diff --git a/docs/ng-dev/classes/angularcontextnext.html b/docs/ng-dev/classes/angularcontextnext.html index 09876153..364206df 100644 --- a/docs/ng-dev/classes/angularcontextnext.html +++ b/docs/ng-dev/classes/angularcontextnext.html @@ -963,13 +963,13 @@ thrown away, so they cannot leak between tests.
Why does the class name end with "Next"? This replaces the old AngularContext
, but it's a breaking change so this gives people some time to transition over. Eventually the old one will be removed and this will be renamed to AngularContext
.
This example tests a simple service that uses HttpClient, and is tested by using AngularContextNext
directly. More often AngularContextNext
will be used a super class. See ComponentContextNext for more common use cases.
This example tests a simple service that uses HttpClient
, and is tested by using AngularContextNext
directly. More often AngularContextNext
will be used as a super class. See ComponentContextNext for more common use cases.
// This is the class we will test.
@Injectable({ providedIn: 'root' })
class MemoriesService {
diff --git a/docs/ng-dev/classes/componentcontextnext.html b/docs/ng-dev/classes/componentcontextnext.html
index 26e1ef55..f4aded77 100644
--- a/docs/ng-dev/classes/componentcontextnext.html
+++ b/docs/ng-dev/classes/componentcontextnext.html
@@ -967,12 +967,14 @@
A superclass to set up testing contexts for components. This is a foundation for an opinionated testing pattern, including everything described in AngularContextNext plus:
+Provides the foundation for an opinionated pattern of component tests.
+- Includes all features from AngularContextNext
- Automatically creates your component at the beginning of
- - Wraps your component in a dynamically created parent component. (This sets up Angular to call
- - Lets you use component harnesses (which are normally not usable within a
+ - Sets up Angular to call
+ - Wraps your component in a dynamically created parent that you can style however you like.
+ - Lets you use component harnesses in the
- Automatically disables animations.
- Automatically integrates trimLeftoverStyles to speed up your test suite.
@@ -1158,7 +1160,7 @@run()
.ngOnChanges()
in your tests the same way it does in production.)fakeAsync
test).ngOnChanges()
like it would in production (this is not the case if you use the standardTestBed.createComponent()
directly).fakeAsync
zone (which is normally a challenge).constructor
fixture
assignInputs
assignWrapperStyles
Protected cleanUp
getComponentInstance
Protected init