Commit a7bfef7
feat(@schematics/angular): simplify service test
Now that the service schematic uses `providedIn` by default,
we can simplify the test to use `TestBed.configureTestingModule({})`.
Also use `TestBed.get()` instead of the `inject` wrapper.1 parent c35b44c commit a7bfef7
File tree
1 file changed
+5
-8
lines changed- packages/schematics/angular/service/files/__name@dasherize@if-flat__
1 file changed
+5
-8
lines changedLines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 6 | + | |
11 | 7 | | |
12 | | - | |
| 8 | + | |
| 9 | + | |
13 | 10 | | |
14 | | - | |
| 11 | + | |
15 | 12 | | |
0 commit comments