Skip to content

Commit 223446d

Browse files
committed
chore: update blueprints considering noImplicityAny
1 parent ecd39cb commit 223446d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

addon/ng2/blueprints/ng2/files/src/app/__name__.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import {<%= jsComponentName %>App} from '../app/<%= htmlComponentName %>';
44
beforeEachProviders(() => [<%= jsComponentName %>App]);
55

66
describe('App: <%= jsComponentName %>', () => {
7-
it('should have the `defaultMeaning` as 42', inject([<%= jsComponentName %>App], (app) => {
7+
it('should have the `defaultMeaning` as 42', inject([<%= jsComponentName %>App], (app: <%= jsComponentName %>App) => {
88
expect(app.defaultMeaning).toBe(42);
99
}));
1010

1111
describe('#meaningOfLife', () => {
12-
it('should get the meaning of life', inject([<%= jsComponentName %>App], (app) => {
12+
it('should get the meaning of life', inject([<%= jsComponentName %>App], (app: <%= jsComponentName %>App) => {
1313
expect(app.meaningOfLife()).toBe('The meaning of life is 42');
1414
expect(app.meaningOfLife(22)).toBe('The meaning of life is 22');
1515
}));

addon/ng2/blueprints/ng2/files/src/app/__name__.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {Component} from 'angular2/core';
1111
export class <%= jsComponentName %>App {
1212
defaultMeaning: number = 42;
1313

14-
meaningOfLife(meaning) {
14+
meaningOfLife(meaning?: number) {
1515
return `The meaning of life is ${meaning || this.defaultMeaning}`;
1616
}
1717
}

0 commit comments

Comments
 (0)