Commit 17781173e0adfad42c6c4584f3cad3f5183d9808
1 parent
0b2e89a1
Exists in
master
and in
33 other branches
Added type field to profile interface
Showing
2 changed files
with
2 additions
and
34 deletions
Show diff stats
src/app/components/noosfero-blocks/profile-image-block/profile-image-block.component.spec.ts
... | ... | @@ -46,37 +46,5 @@ describe("Components", () => { |
46 | 46 | |
47 | 47 | }); |
48 | 48 | |
49 | - it("get activitities from profileService", () => { | |
50 | - | |
51 | - | |
52 | - let profileServiceMock = buildServiceMock(); | |
53 | - | |
54 | - let profileImageBlock = new ProfileImageBlock(<any>profileServiceMock); | |
55 | - | |
56 | - profileImageBlock.ngOnInit(); | |
57 | - expect(profileServiceMock.getActivities).toHaveBeenCalled(); | |
58 | - expect(profileImageBlock.image.name).toEqual("some-thing"); | |
59 | - }); | |
60 | - | |
61 | - // it("render the profile image", done => { | |
62 | - // tcb.createAsync(BlockContainerComponent).then(fixture => { | |
63 | - // expect(fixture.debugElement.queryAll("noosfero-profile-image").length).toEqual(1); | |
64 | - // done(); | |
65 | - // }); | |
66 | - // }); | |
67 | - // | |
68 | - // it("render the settings link", done => { | |
69 | - // tcb.createAsync(BlockContainerComponent).then(fixture => { | |
70 | - // expect(fixture.debugElement.queryAll(".settings-link").length).toEqual(1); | |
71 | - // done(); | |
72 | - // }); | |
73 | - // }); | |
74 | - | |
75 | - it("test dependency", done => { | |
76 | - tcb.createAsync(BlockContainerComponent).then(fixture => { | |
77 | - //let service = mock(Service) | |
78 | - done(); | |
79 | - }); | |
80 | - }); | |
81 | 49 | }); |
82 | 50 | }); |
83 | 51 | \ No newline at end of file | ... | ... |
src/lib/ng-noosfero-api/http/profile.service.spec.ts
... | ... | @@ -61,12 +61,12 @@ describe("Services", () => { |
61 | 61 | }); |
62 | 62 | |
63 | 63 | it("should resolve the current profile", (done) => { |
64 | - let profile: Profile = { id: 1, identifier: "profile1" }; | |
64 | + let profile = { id: 1, identifier: "profile1" }; | |
65 | 65 | profileService.getCurrentProfile().then((currentProfile: Profile) => { |
66 | 66 | expect(currentProfile).toEqual(currentProfile); |
67 | 67 | done(); |
68 | 68 | }); |
69 | - profileService.setCurrentProfile(profile); | |
69 | + profileService.setCurrentProfile(<Profile>profile); | |
70 | 70 | $rootScope.$apply(); |
71 | 71 | }); |
72 | 72 | ... | ... |