common/corpus-common-addon/tests/integration/components/doc-generic-test.js
changeset 141 c0e8626a271c
parent 140 f851ec12812f
child 142 86fcf0c837c0
equal deleted inserted replaced
140:f851ec12812f 141:c0e8626a271c
     1 import { moduleForComponent, test } from 'ember-qunit';
       
     2 import hbs from 'htmlbars-inline-precompile';
       
     3 
       
     4 moduleForComponent('doc-generic', 'Integration | Component | doc generic', {
       
     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`{{doc-generic}}`);
       
    13 
       
    14   assert.equal(this.$().text().trim(), '');
       
    15 
       
    16   // Template block usage:"
       
    17   this.render(hbs`
       
    18     {{#doc-generic}}
       
    19       template block text
       
    20     {{/doc-generic}}
       
    21   `);
       
    22 
       
    23   assert.equal(this.$().text().trim(), 'template block text');
       
    24 });