text: import { moduleForComponent, test } from 'ember-qunit';
  import hbs from 'htmlbars-inline-precompile';
  
  moduleForComponent('simple-table-body', 'Integration | Component | simple table body', {
    integration: true
  });
  
  test('it renders with simple component', function(assert) {
    // Set any properties with this.set('myProperty', 'value');
    // Handle any actions with this.on('myAction', function(val) { ... });
  
    this.set('rows', [{ foo: 'bar', baz: 'boo' }]);
    this.set('columns', ['foo', 'baz']);
  
    this.render(hbs`{{simple-table-body columns=columns rows=rows}}`);
  
    assert.notEqual(this.$().text().trim(), '');
    assert.equal(this.$('tbody').length, 1);
  });
  
  test('it renders with block usage', function(assert) {
    // Set any properties with this.set('myProperty', 'value');
    // Handle any actions with this.on('myAction', function(val) { ... });
  
    this.set('rows', [{ foo: 'bar', baz: 'boo' }]);
    this.set('columns', ['foo', 'baz']);
  
    // Template block usage:
    this.render(hbs`
      {{#simple-table-body columns=columns rows=rows as |row|}}
          <td> {{ row.foo }} </td>
          <td> {{ row.baz }} </td>
      {{/simple-table-body}}
    `);
  
    assert.notEqual(this.$().text().trim(), '');
    assert.equal(this.$('tbody').length, 1);
  });
  
  