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');
|
||||
});
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('controller:application', 'Unit | Controller | application', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
needs: ['service:storage']
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function(assert) {
|
||||
let controller = this.subject();
|
||||
assert.ok(controller);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('controller:index', 'Unit | Controller | index', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
needs: ['service:storage']
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('route:index', 'Unit | Route | index', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
needs: ['service:storage']
|
||||
});
|
||||
|
||||
test('it exists', function(assert) {
|
||||
|
||||
Reference in New Issue
Block a user