Fix tests

This commit is contained in:
2017-11-08 23:35:23 +01:00
parent 3956a59f58
commit bf84e70527
7 changed files with 15 additions and 30 deletions

View File

@@ -6,19 +6,9 @@ moduleForComponent('categories-nav', 'Integration | Component | categories nav',
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
this.set('categories', [ 'documents', 'notes' ]);
this.render(hbs`{{categories-nav}}`);
this.render(hbs`{{categories-nav categories=categories}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#categories-nav}}
template block text
{{/categories-nav}}
`);
assert.equal(this.$().text().trim(), 'template block text');
assert.equal(this.$('ul li:first a').text(), 'documents');
});