|
|
@@ -16,16 +16,16 @@ describe('AppComponent', () => {
|
|
|
expect(app).toBeTruthy();
|
|
|
});
|
|
|
|
|
|
- it(`should have as title 'frontend'`, () => {
|
|
|
+ it(`should have as title 'Simple Calculator'`, () => {
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
const app = fixture.componentInstance;
|
|
|
- expect(app.title).toEqual('frontend');
|
|
|
+ expect(app.title).toEqual('Simple Calculator');
|
|
|
});
|
|
|
|
|
|
it('should render title', () => {
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
fixture.detectChanges();
|
|
|
const compiled = fixture.nativeElement;
|
|
|
- expect(compiled.querySelector('.content span').textContent).toContain('frontend app is running!');
|
|
|
+ expect(compiled.querySelector('div.header h1').textContent).toContain('Simple Calculator');
|
|
|
});
|
|
|
});
|