Commit 5c17bd91 authored by Matthieu FAURE's avatar Matthieu FAURE

Merge branch '54-set-application-name' into 'develop'

Resolve "Set application name"

Closes #54

See merge request !46
parents 384cf554 e65021e6
Pipeline #6320 passed with stages
in 4 minutes and 28 seconds
......@@ -21,16 +21,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
}));
it(`should have as title 'app works!'`, async(() => {
it(`should have as title 'E-Collectivité v2'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app works!');
expect(app.title).toEqual('E-Collectivité v2');
}));
it('should render title in a h1 tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('app works!');
expect(compiled.querySelector('h1').textContent).toContain('E-Collectivité v2');
}));
});
......@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
title = 'E-Collectivité v2';
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment