common/corpus-common-addon/tests/integration/components/doc-generic-test.js
author ymh <ymh.work@gmail.com>
Sun, 28 Feb 2016 09:30:23 +0100
changeset 134 c06d08c8a1b8
permissions -rw-r--r--
add bnf resolver in common addon + applications

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

moduleForComponent('doc-generic', 'Integration | Component | doc generic', {
  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-generic}}`);

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

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

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