diff --git a/src/app/components/noosfero-blocks/profile-image-block/profile-image-block.component.spec.ts b/src/app/components/noosfero-blocks/profile-image-block/profile-image-block.component.spec.ts index a3e50ea..094f5d6 100644 --- a/src/app/components/noosfero-blocks/profile-image-block/profile-image-block.component.spec.ts +++ b/src/app/components/noosfero-blocks/profile-image-block/profile-image-block.component.spec.ts @@ -46,37 +46,5 @@ describe("Components", () => { }); - it("get activitities from profileService", () => { - - - let profileServiceMock = buildServiceMock(); - - let profileImageBlock = new ProfileImageBlock(profileServiceMock); - - profileImageBlock.ngOnInit(); - expect(profileServiceMock.getActivities).toHaveBeenCalled(); - expect(profileImageBlock.image.name).toEqual("some-thing"); - }); - - // it("render the profile image", done => { - // tcb.createAsync(BlockContainerComponent).then(fixture => { - // expect(fixture.debugElement.queryAll("noosfero-profile-image").length).toEqual(1); - // done(); - // }); - // }); - // - // it("render the settings link", done => { - // tcb.createAsync(BlockContainerComponent).then(fixture => { - // expect(fixture.debugElement.queryAll(".settings-link").length).toEqual(1); - // done(); - // }); - // }); - - it("test dependency", done => { - tcb.createAsync(BlockContainerComponent).then(fixture => { - //let service = mock(Service) - done(); - }); - }); }); }); \ No newline at end of file diff --git a/src/lib/ng-noosfero-api/http/profile.service.spec.ts b/src/lib/ng-noosfero-api/http/profile.service.spec.ts index b8d1604..7f915f1 100644 --- a/src/lib/ng-noosfero-api/http/profile.service.spec.ts +++ b/src/lib/ng-noosfero-api/http/profile.service.spec.ts @@ -61,12 +61,12 @@ describe("Services", () => { }); it("should resolve the current profile", (done) => { - let profile: Profile = { id: 1, identifier: "profile1" }; + let profile = { id: 1, identifier: "profile1" }; profileService.getCurrentProfile().then((currentProfile: Profile) => { expect(currentProfile).toEqual(currentProfile); done(); }); - profileService.setCurrentProfile(profile); + profileService.setCurrentProfile(profile); $rootScope.$apply(); }); -- libgit2 0.21.2