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('bits/leaderboard/tag-score', 'Integration | Component | bits/leaderboard/tag-score');

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

  this.render(hbs`{{bits/leaderboard/tag-score
    playerTag='player1'
    playerTotal=0
    playerColor='#000000'
    playerTotalDisplay=0}}
  `);

  return wait().then(() => {
    assert.equal(this.$('bits-tag__falling-bits').text().trim(), '');
  });
});
