Skip to content

Commit

Permalink
fix(UI): Accessors section in top index pages
Browse files Browse the repository at this point in the history
fix #615
  • Loading branch information
vogloblinsky committed Aug 24, 2018
1 parent 3b4e8a5 commit aa4a492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/templates/partials/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
{{/if}}

{{#if accessors}}
{{#compare accessors.length ">" 0}}
{{#objectLength accessors ">" 0}}
<tr>
<td class="col-md-4">
<h6><b>Accessors</b></h6>
Expand All @@ -161,7 +161,7 @@
</ul>
</td>
</tr>
{{/compare}}
{{/objectLength}}
{{/if}}
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
--colors
--harmony
--timeout 120000
test/dist/cli/cli-coverage.spec.js
test/dist/cli/**.js
1 change: 1 addition & 0 deletions test/src/cli/cli-generation-big-app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ describe('CLI simple generation - big app', () => {

it('should support accessors for class', () => {
let file = read(distFolder + '/classes/Todo.html');
expect(file).to.contain('<a href="#title">title</a>');
expect(file).to.contain('Accessors');
expect(file).to.contain('Setter of _title');
expect(file).to.contain('<p>Returns the runtime path</p>');
Expand Down

0 comments on commit aa4a492

Please sign in to comment.