common/corpus-common-addon/tests/integration/components/doc-olac-test.js
author ymh <ymh.work@gmail.com>
Mon, 06 Feb 2017 15:22:39 +0100
changeset 500 4f507ba2bb4c
parent 490 76da86cf9696
permissions -rw-r--r--
add alternativeTitle. Prepare #0025746

import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('doc-olac', 'Integration | Component | doc olac', {
  integration: true
});

test('it renders', function(assert) {
  // Set any properties with this.set('myProperty', 'value');
  // Handle any actions with this.on('myAction', function(val) { ... });

  this.render(hbs`{{doc-olac}}`);

  assert.equal(this.$().text().trim(), '');

  // Template block usage:
  this.render(hbs`
    {{#doc-olac}}
      template block text
    {{/doc-olac}}
  `);

  assert.equal(this.$().text().trim(), 'template block text');
});