You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jumbo-test.js 746B

1234567891011121314151617181920212223242526
  1. import { module, test } from 'qunit';
  2. import { setupRenderingTest } from 'ember-qunit';
  3. import { render } from '@ember/test-helpers';
  4. import { hbs } from 'ember-cli-htmlbars';
  5. module('Integration | Component | jumbo', function(hooks) {
  6. setupRenderingTest(hooks);
  7. test('it renders', async function(assert) {
  8. // Set any properties with this.set('myProperty', 'value');
  9. // Handle any actions with this.set('myAction', function(val) { ... });
  10. await render(hbs`<Jumbo />`);
  11. assert.equal(this.element.textContent.trim(), '');
  12. // Template block usage:
  13. await render(hbs`
  14. <Jumbo>
  15. template block text
  16. </Jumbo>
  17. `);
  18. assert.equal(this.element.textContent.trim(), 'template block text');
  19. });
  20. });