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

moduleForComponent('directory/game-details/description', 'Integration | Component | directory/game details/description');

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

  this.product = {
    description: 'hello'
  };
  this.render(hbs`{{directory/game-details/description product=product}}`);

  return wait().then(() => {
    assert.elementText(this.$('.game-details__section-title'), 'Description', 'description header');
    assert.elementText(this.$('p'), 'hello', 'description content');
  });
});
