Commit 67ad632543c8c84b40833a48443bf10795550a8a

Authored by ABNER SILVA DE OLIVEIRA
1 parent 2e81cc7a

Renamed to add suffix Component on ProfileHomeComponent reference

src/app/profile/profile-home.component.spec.ts
1 1 import {quickCreateComponent} from "../../spec/helpers";
2   -import {ProfileHome} from "./profile-home.component";
  2 +import {ProfileHomeComponent} from "./profile-home.component";
3 3  
4 4 describe("Components", () => {
5 5 describe("Profile Home Component", () => {
... ... @@ -30,7 +30,7 @@ describe("Components", () => {
30 30 it("transition to profile homepage when there is a homepage setted", done => {
31 31 homePageResponse.resolve({ data: { article: { path: "something" } } });
32 32  
33   - let component: ProfileHome = new ProfileHome(profileServiceMock, $state);
  33 + let component: ProfileHomeComponent = new ProfileHomeComponent(profileServiceMock, $state);
34 34 $rootScope.$apply();
35 35 expect(profileServiceMock.getCurrentProfile).toHaveBeenCalled();
36 36 expect(profileServiceMock.getHomePage).toHaveBeenCalled();
... ... @@ -44,7 +44,7 @@ describe("Components", () => {
44 44 it("transition to profile info page when there is no homepage setted", done => {
45 45 homePageResponse.resolve({ data: {} });
46 46  
47   - let component: ProfileHome = new ProfileHome(profileServiceMock, $state);
  47 + let component: ProfileHomeComponent = new ProfileHomeComponent(profileServiceMock, $state);
48 48 $rootScope.$apply();
49 49 expect(profileServiceMock.getCurrentProfile).toHaveBeenCalled();
50 50 expect(profileServiceMock.getHomePage).toHaveBeenCalled();
... ...