I’m getting the following error
Assertion after the final `assert.async` was resolved
When running the following test:
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('artist-tile', 'Integration | Component | artist tile', {
integration: true
});
test('it renders', function(assert) {
assert.expect(2);
this.render(hbs`{{artist-tile}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#artist-tile}}
template block text
{{/artist-tile}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});
Here’s the error in full:
not ok 61 PhantomJS 1.9 - Integration | Component | artist tile: it renders
---
actual: >
null
message: >
Assertion after the final `assert.async` was resolved
Log: |
...
Any idea what I’m doing wrong?