Skip to content

Commit b9c4b34

Browse files
alan-agius4Keen Yee Liau
authored andcommitted
feat(@schematics/angular): replace deprecated TestBed.get with TestBed.inject
Relates to angular/angular#32200
1 parent 366e51b commit b9c4b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('<%= classify(name) %>Service', () => {
77

88
beforeEach(() => {
99
TestBed.configureTestingModule({});
10-
service = TestBed.get(<%= classify(name) %>Service);
10+
service = TestBed.inject(<%= classify(name) %>Service);
1111
});
1212

1313
it('should be created', () => {

0 commit comments

Comments
 (0)