import { test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import moduleForComponent from 'web-client/tests/helpers/module-for-component';

const SECTION_TITLE = 'Awsome Section Title!';

moduleForComponent('dashboards/subscription-dash/section-table', 'Integration | Component | dashboards/subscription-dash/section-table');

test('it renders', function (assert) {
  assert.expect(2);

  this.set('sectionTitle', SECTION_TITLE);

  this.render(hbs`
    {{#dashboards/subscription-dash/section-table sectionTitle=sectionTitle}}
      HEY!
    {{/dashboards/subscription-dash/section-table}}
  `);

  assert.elementText(this.$('thead tr th'), SECTION_TITLE, 'table title is rendered');
  assert.elementText(this.$('tbody'), 'HEY!', 'table body content is rendered');
});
