describe('when navigate to existing hero', () => {
let expectedHero: Hero;
beforeEach(async(() => {
expectedHero = firstHero;
activatedRoute.setParamMap({ id: expectedHero.id });
createComponent();
}));
it('should display that hero\'s name', () => {
expect(page.nameDisplay.textContent).toBe(expectedHero.name);
});
});