Commit 43fba5c02b26efe3be28bbf01bc31e07f72e7d84
1 parent
fa922ca9
Exists in
master
and in
35 other branches
Fix typo in members block test
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/app/components/noosfero-blocks/members-block/members-block.component.spec.ts
| @@ -34,15 +34,14 @@ describe("Members Block Component", () => { | @@ -34,15 +34,14 @@ describe("Members Block Component", () => { | ||
| 34 | 34 | ||
| 35 | it("get members of the block owner", done => { | 35 | it("get members of the block owner", done => { |
| 36 | tcb.createAsync(BlockContainerComponent).then(fixture => { | 36 | tcb.createAsync(BlockContainerComponent).then(fixture => { |
| 37 | - let recentDocumentsBlock: MembersBlock = fixture.debugElement.componentViewChildren[0].componentInstance; | ||
| 38 | - expect(recentDocumentsBlock.members).toEqual([{ identifier: "person1" }]); | 37 | + let block: MembersBlock = fixture.debugElement.componentViewChildren[0].componentInstance; |
| 38 | + expect(block.members).toEqual([{ identifier: "person1" }]); | ||
| 39 | done(); | 39 | done(); |
| 40 | }); | 40 | }); |
| 41 | }); | 41 | }); |
| 42 | 42 | ||
| 43 | it("render the profile image for each member", done => { | 43 | it("render the profile image for each member", done => { |
| 44 | tcb.createAsync(BlockContainerComponent).then(fixture => { | 44 | tcb.createAsync(BlockContainerComponent).then(fixture => { |
| 45 | - let recentDocumentsBlock: MembersBlock = fixture.debugElement.componentViewChildren[0].componentInstance; | ||
| 46 | fixture.debugElement.getLocal("$rootScope").$apply(); | 45 | fixture.debugElement.getLocal("$rootScope").$apply(); |
| 47 | expect(fixture.debugElement.queryAll("noosfero-profile-image").length).toEqual(1); | 46 | expect(fixture.debugElement.queryAll("noosfero-profile-image").length).toEqual(1); |
| 48 | done(); | 47 | done(); |