Skip to content

Commit

Permalink
fix(component-host): setting for wrong variable (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
guiseek authored Oct 1, 2020
1 parent f805956 commit 975c1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('<%= classify(name)%>Component', () => {
it('should...', () => {
spectator = createHost(`<zippy title="Zippy title"></zippy>`);
spectator.click('.zippy__title');
expect(host.query('.zippy__content')).toExist();
expect(spectator.query('.zippy__content')).toExist();
spectator.click('.zippy__title');
expect('.zippy__content').not.toExist();
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHttpFactory, HttpMethod } from '@ngneat/spectator';
import { createHttpFactory, HttpMethod, SpectatorHttp } from '@ngneat/spectator';
import { <%= classify(name)%>Service } from './<%= dasherize(name)%>.service';

describe('<%= classify(name)%>Service', () => {
Expand All @@ -11,4 +11,4 @@ describe('<%= classify(name)%>Service', () => {
// spectator.service.getTodos().subscribe();
// spectator.expectOne('api/todos', HttpMethod.GET);
});
});
});

0 comments on commit 975c1d2

Please sign in to comment.