Skip to content

Commit 1e6eecb

Browse files
committed
fix(deps): abstract modifier
fix #626
1 parent 1f539b8 commit 1e6eecb

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/app/engines/html-engine-helpers/modif-kind-helper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export class ModifKindHelper implements IHtmlEngineHelper {
3131
case SyntaxKind.AsyncKeyword:
3232
_kindText = 'Async';
3333
break;
34+
case SyntaxKind.AbstractKeyword:
35+
_kindText = 'Abstract';
36+
break;
3437
}
3538
return new Handlebars.SafeString(_kindText);
3639
}

test/src/cli/cli-generation-big-app.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,4 +714,10 @@ describe('CLI simple generation - big app', () => {
714714
let file = read(distFolder + '/injectables/TodoStore.html');
715715
expect(file).to.contain('Map<string, number>');
716716
});
717+
718+
it('correct support of abstract and async modifiers', () => {
719+
let file = read(distFolder + '/classes/Todo.html');
720+
expect(file).to.contain('<span class="modifier">Abstract</span>');
721+
expect(file).to.contain('<span class="modifier">Async</span>');
722+
});
717723
});

test/src/todomvc-ng2/src/app/shared/models/todo.model.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export class Todo extends Tada {
8383
azert() {
8484
return 5;
8585
}
86+
87+
abstract abstractMethod(input : string) : string;
88+
89+
async asyncMethod() {}
8690
}
8791

8892
export type PopupPosition = ElementRef | HTMLElement;

0 commit comments

Comments
 (0)