Skip to content

Commit

Permalink
add nestingLevel test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed May 27, 2016
1 parent 65c7bbd commit be5ef26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/templates/components/dependency-nest.hbs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{{#each dependencies as |dep|}}
{{#each dependencies as |dependency|}}
<!-- <tr>
<td>&nbsp;&nbsp;{{dep.module}}</td>
<td>{{dep.firstVersionHint}}</td>
<td>{{dep.secondVersionHint}}</td>
<td>&nbsp;&nbsp;{{dependency.module}}</td>
<td>{{dependency.firstVersionHint}}</td>
<td>{{dependency.secondVersionHint}}</td>
<td>test</td>
<td>test</td>
</tr> -->
<!-- {{dependency-row
module=dep.module
firstVersionHint=dep.firstVersionHint
secondVersionHint=dep.secondVersionHint
dependency=dependency
nestingLevel=nestingLevel
repoWorkingDate=repoWorkingDate
repoBrokenDate=repoBrokenDate
stopCrawling=stopCrawling
shouldOnlyShowDifferent=shouldOnlyShowDifferent
doneCrawling="doneCrawling"
}} -->
{{/each}}
{{error}}
11 changes: 11 additions & 0 deletions tests/integration/components/dependency-row-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function render() {
this.render(hbs`
{{dependency-row
dependency=dependency
nestingLevel=2
repoWorkingDate=repoWorkingDate
repoBrokenDate=repoBrokenDate
shouldOnlyShowDifferent=shouldOnlyShowDifferent
Expand Down Expand Up @@ -101,6 +102,16 @@ test('doesn\'t hide row when same', function(assert) {
});
});

test('respects nesting level', function(assert) {
assert.expect(1);

render.call(this);

return wait().then(() => {
assert.strictEqual(this.$('.module')[0].style.paddingLeft, '2em');
});
});

test('shows module', function(assert) {
assert.expect(1);

Expand Down

0 comments on commit be5ef26

Please sign in to comment.