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

moduleForComponent('v2/editor/show-markdown', 'Integration | Component | v2/editor/show markdown', {
  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`{{v2/editor/show-markdown}}`);

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

  // Template block usage:
  this.render(hbs`
    {{#v2/editor/show-markdown}}
      template block text
    {{/v2/editor/show-markdown}}
  `);

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

{'avg_line_length': 27.346153846153847, 'max_line_length': 100, 'alphanum_fraction': 0.6610407876230661, 'licenses': ['Apache-2.0'], 'repository_name': 'ubuntuvim/apc-note', 'path': 'tests/integration/components/v2/editor/show-markdown-test.js', 'size': 711, 'lang': 'JavaScript'}