Update Ember to 3.1
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import { moduleForComponent, test } from 'ember-qunit';
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render, find } from '@ember/test-helpers';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
|
||||
moduleForComponent('add-proposal', 'Integration | Component | add proposal', {
|
||||
integration: true
|
||||
});
|
||||
|
||||
test('it renders', function(assert) {
|
||||
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.on('myAction', function(val) { ... });
|
||||
|
||||
this.render(hbs`{{add-proposal}}`);
|
||||
|
||||
assert.equal(this.$('.actions a').text().trim(), 'Back');
|
||||
module('Integration | Component | add proposal', function(hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function(assert) {
|
||||
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.on('myAction', function(val) { ... });
|
||||
|
||||
await render(hbs`{{add-proposal}}`);
|
||||
|
||||
assert.equal(find('.actions a').textContent.trim(), 'Back');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user