Skip to content

Commit

Permalink
fix(deps): optional field in parameter table could be yes or no
Browse files Browse the repository at this point in the history
fix #420
  • Loading branch information
vogloblinsky committed Dec 28, 2017
1 parent 827a3eb commit 96f3a0b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
16 changes: 10 additions & 6 deletions src/templates/partials/block-accessors.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
{{/if}}
</td>
<td>
{{#if optional}}
true
{{/if}}
{{#if optional}}
yes
{{else}}
no
{{/if}}
</td>
<td>{{{comment}}}</td>
</tr>
Expand Down Expand Up @@ -142,9 +144,11 @@
{{/if}}
</td>
<td>
{{#if optional}}
true
{{/if}}
{{#if optional}}
yes
{{else}}
no
{{/if}}
</td>
<td>{{{comment}}}</td>
</tr>
Expand Down
8 changes: 5 additions & 3 deletions src/templates/partials/block-constructor.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
{{/if}}
</td>
<td>
{{#if optional}}
true
{{/if}}
{{#if optional}}
yes
{{else}}
no
{{/if}}
</td>
<td>{{{comment}}}</td>
</tr>
Expand Down
4 changes: 3 additions & 1 deletion src/templates/partials/block-method.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@
</td>
<td>
{{#if optional}}
true
yes
{{else}}
no
{{/if}}
</td>
<td>{{{comment}}}</td>
Expand Down
2 changes: 1 addition & 1 deletion test/src/cli/cli-generation-big-app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ describe('CLI simple generation - big app', () => {

it('should support optional', () => {
let file = read('documentation/injectables/TodoStore.html');
expect(file).to.contain('true');
expect(file).to.contain('yes');
});

it('should support optional', () => {
Expand Down

0 comments on commit 96f3a0b

Please sign in to comment.