Skip to content

Commit

Permalink
Replacing override component with override tempalte
Browse files Browse the repository at this point in the history
  • Loading branch information
sendilkumarn committed May 26, 2017
1 parent 30641e8 commit 537dc4e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 32 deletions.
Expand Up @@ -53,11 +53,8 @@ describe('Component Tests', () => {
useValue: null
}
]
}).overrideComponent(RegisterComponent, {
set: {
template: ''
}
}).compileComponents();
}).overrideTemplate(RegisterComponent, '')
.compileComponents();
}));

beforeEach(() => {
Expand Down
Expand Up @@ -47,11 +47,8 @@ describe('Component Tests', () => {
useClass: MockPrincipal
}
]
}).overrideComponent(SessionsComponent, {
set: {
template: ''
}
}).createComponent(SessionsComponent);
}).overrideTemplate(SessionsComponent, '')
.createComponent(SessionsComponent);
comp = fixture.componentInstance;
});

Expand Down
Expand Up @@ -67,11 +67,8 @@ describe('Component Tests', () => {
},
<%_ } _%>
]
}).overrideComponent(SettingsComponent, {
set: {
template: ''
}
}).compileComponents();
}).overrideTemplate(SettingsComponent, '')
.compileComponents();
}));

beforeEach(() => {
Expand Down
Expand Up @@ -62,12 +62,7 @@ describe('Component Tests', () => {
PaginationConfig,
DatePipe
]
})
.overrideComponent(AuditsComponent, {
set: {
template: ''
}
})
}).overrideTemplate(AuditsComponent, '')
.compileComponents();
}));

Expand Down
Expand Up @@ -42,12 +42,7 @@ describe('Component Tests', () => {
useValue: null
}
]
})
.overrideComponent(<%=jhiPrefixCapitalized%>HealthCheckComponent, {
set: {
template: ''
}
})
}).overrideTemplate(<%=jhiPrefixCapitalized%>HealthCheckComponent, '')
.compileComponents();
}));

Expand Down
Expand Up @@ -50,11 +50,8 @@ describe('Component Tests', () => {
<%= entityAngularName %>Service,
EventManager
]
}).overrideComponent(<%= entityAngularName %>DetailComponent, {
set: {
template: ''
}
}).compileComponents();
}).overrideTemplate(<%= entityAngularName %>DetailComponent, '')
.compileComponents();
}));

beforeEach(() => {
Expand Down

0 comments on commit 537dc4e

Please sign in to comment.