Skip to content

Commit bb3aea0

Browse files
committed
chore(test): update root spec to test title
1 parent 6031bb1 commit bb3aea0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<h1>
2-
<%= htmlComponentName %> works!
2+
{{title}}
33
</h1>

addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.spec.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ import {<%= jsComponentName %>App} from '../app/<%= htmlComponentName %>.compone
1414

1515
beforeEachProviders(() => [<%= jsComponentName %>App]);
1616

17-
describe('App: <%= jsComponentName %>', () => {
18-
it('should create the app', inject([<%= jsComponentName %>App], (app: <%= jsComponentName %>App) => {
19-
expect(app).toBeTruthy();
20-
}));
17+
describe('App: <%= jsComponentName %>', () => {
18+
it('should create the app', inject([<%= jsComponentName %>App], (app: <%= jsComponentName %>App) => {
19+
expect(app.title).toEqual('<%= htmlComponentName %> works!');
20+
}));
2121
});
22-

addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ import {Component} from 'angular2/core';
77
styleUrls: ['<%= dasherizedModuleName %>.component.<%= styleExt %>']
88
})
99
export class <%= jsComponentName %>App {
10+
title = '<%= htmlComponentName %> works!';
1011
}

0 commit comments

Comments
 (0)