Skip to content

Commit

Permalink
refactor(schematics): replace deprecated
Browse files Browse the repository at this point in the history
`TestBed.get`
  • Loading branch information
LayZeeDK committed Apr 20, 2020
1 parent 1286726 commit 904c509
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('<%= classify(name) %>Effects', () => {
]
});

effects = TestBed.get<<%= classify(name) %>Effects>(<%= classify(name) %>Effects);
effects = TestBed.inject(<%= classify(name) %>Effects);
});

it('should be created', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('<%= classify(name) %>Component', () => {
beforeEach(() => {
fixture = TestBed.createComponent(<%= classify(name) %>Component);
component = fixture.componentInstance;
store = TestBed.get<Store>(Store);
store = TestBed.inject(Store);

fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('<%= classify(name) %>Component', () => {
beforeEach(() => {
fixture = TestBed.createComponent(<%= classify(name) %>Component);
component = fixture.componentInstance;
store = TestBed.get<Store>(Store);
store = TestBed.inject(Store);

spyOn(store, 'dispatch').and.callThrough();
fixture.detectChanges();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('<%= classify(name) %>Effects', () => {
]
});

effects = TestBed.get<<%= classify(name) %>Effects>(<%= classify(name) %>Effects);
effects = TestBed.inject(<%= classify(name) %>Effects);
});

it('should be created', () => {
Expand Down

0 comments on commit 904c509

Please sign in to comment.