Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

feat(@schematics/angular): use application name as title in AppComponent #906

Merged
merged 1 commit into from
May 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ describe('AppComponent', () => {
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it(`should have as title '<%= prefix %>'`, async(() => {
it(`should have as title '<%= name %>'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('<%= prefix %>');
expect(app.title).toEqual('<%= name %>');
}));
it('should render title in a h1 tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.<%= styleext %>']<% } %>
})
export class AppComponent {
title = '<%= prefix %>';
title = '<%= name %>';
}