Skip to content

Commit

Permalink
feat(@angular/cli): updating landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora committed May 1, 2017
1 parent 4580088 commit 97be4f5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
<h1>
{{title}}
</h1><% if (routing) { %>
<div style="text-align:center">
<h1>
Welcome to {{title}}!!
</h1>
<img src="https://angular.io/resources/images/logos/angular/angular.png" />
</div>
<h2>Here are some links to help you start: </h2>
<ul>
<li>
<h2><a target="_blank" href="https://angular.io/docs/ts/latest/tutorial/">Tour of Heros</a></h2>
</li>
<li>
<h2><a target="_blank" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2>
</li>
<li>
<h2><a target="_blank" href="http://angularjs.blogspot.ca/">Angular blog</a></h2>
</li>
</ul>
<% if (routing) { %>
<router-outlet></router-outlet><% } %>
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
}));

it(`should have as title '<%= prefix %> works!'`, async(() => {
it(`should have as title 'Welcome to <%= prefix %>!!'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('<%= prefix %> works!');
expect(app.title).toEqual('Welcome to <%= prefix %>!!');
}));

it('should render title in a h1 tag', async(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/@angular/cli/blueprints/ng/files/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ describe('<%= htmlComponentName %> App', () => {
page = new <%= jsComponentName %>Page();
});

it('should display message saying app works', () => {
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('<%= prefix %> works!');
expect(page.getParagraphText()).toEqual('Welcome to <%= prefix %>!!');
});
});

0 comments on commit 97be4f5

Please sign in to comment.