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/falling-bit', 'Integration | Component | bits/leaderboard/falling bit');

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

  this.render(hbs`{{bits/leaderboard/falling-bit amount=1}}`);

  return wait().then(() => {
    assert.elementCount('.js-bits-emote-image', 1, 'emote image');
  });
});
