Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit efd448d

Browse files
gordonmzhugkalpak
authored andcommitted
docs(guide/unit-testing): fix typo
Closes #14198
1 parent db281c1 commit efd448d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/unit-testing.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ Jasmine's `beforeAll()` and mocha's `before()` hooks are often useful for sharin
444444

445445
By default, ngMock will create an injector per test case to ensure your tests do not affect each other. However, if we want to use `beforeAll()`, ngMock will have to create the injector before any test cases are run, and share that injector through all the cases for that `describe`. That is where {@link angular.mock.module.sharedInjector module.sharedInjector()} comes in. When it's called within a `describe` block, a single injector is shared between all hooks and test cases run in that block.
446446

447-
In the example below we are testing a service that takes a long time to generate its answer. To avoid having all of the assertions we want to write in a single test case, {@link angular.mock.module.sharedInjector module.sharedInjector()} and Jasmine's `beforeAll()` are used to run the service only one. The test cases then all make assertions about the properties added to the service instance.
447+
In the example below we are testing a service that takes a long time to generate its answer. To avoid having all of the assertions we want to write in a single test case, {@link angular.mock.module.sharedInjector module.sharedInjector()} and Jasmine's `beforeAll()` are used to run the service only once. The test cases then all make assertions about the properties added to the service instance.
448448

449449
```javascript
450450
describe("Deep Thought", function() {

0 commit comments

Comments
 (0)