15 lines
430 B
JavaScript
15 lines
430 B
JavaScript
import { moduleForComponent, test } from 'ember-qunit';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
moduleForComponent('categories-nav', 'Integration | Component | categories nav', {
|
|
integration: true
|
|
});
|
|
|
|
test('it renders', function(assert) {
|
|
this.set('categories', [ 'documents', 'notes' ]);
|
|
|
|
this.render(hbs`{{categories-nav categories=categories}}`);
|
|
|
|
assert.equal(this.$('ul li:first a').text(), 'documents');
|
|
});
|