Fix tests
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user