import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('debounced-input', 'Integration | Component | debounced input', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); // Handle any actions with this.on('myAction', function(val) { ... });" + EOL + EOL + this.render(hbs`{{debounced-input}}`); assert.equal(this.$().text().trim(), ''); // Template block usage:" + EOL + this.render(hbs` {{#debounced-input}} template block text {{/debounced-input}} `); assert.equal(this.$().text().trim(), 'template block text'); });