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

const TAG_SELECTOR = '.ct-tag';

moduleForComponent('tag-list');

test('it lists each tag present', function (assert) {
  assert.expect(1);
  this.set('tags', [{ tag: 'one' }, { tag: 'two' }, { tag: 'three' }]);
  this.render(hbs`{{tag-list tags=tags}}`);
  assert.equal(this.$(TAG_SELECTOR).length, 3);
});
