cms/app-client/tests/integration/components/transcript-annotation-component-test.js
changeset 458 c3a5f4de29b0
parent 457 a7a333c0b1eb
child 459 6a296e92887f
equal deleted inserted replaced
457:a7a333c0b1eb 458:c3a5f4de29b0
     1 import { moduleForComponent, test } from 'ember-qunit';
       
     2 import hbs from 'htmlbars-inline-precompile';
       
     3 
       
     4 moduleForComponent('transcript-annotation-component', 'Integration | Component | transcript annotation component', {
       
     5   integration: true
       
     6 });
       
     7 
       
     8 test('it renders', function(assert) {
       
     9   // Set any properties with this.set('myProperty', 'value');
       
    10   // Handle any actions with this.on('myAction', function(val) { ... });
       
    11 
       
    12   this.render(hbs`{{transcript-annotation-component}}`);
       
    13 
       
    14   assert.equal(this.$().text().trim(), '');
       
    15 
       
    16   // Template block usage:
       
    17   this.render(hbs`
       
    18     {{#transcript-annotation-component}}
       
    19       template block text
       
    20     {{/transcript-annotation-component}}
       
    21   `);
       
    22 
       
    23   assert.equal(this.$().text().trim(), 'template block text');
       
    24 });