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