2018-08-09 10:41:52 -07:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
|
|
import { render } from '@ember/test-helpers';
|
2017-11-16 14:54:06 -08:00
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
|
2018-08-09 10:41:52 -07:00
|
|
|
module('Integration | Component | pendulum ellipsis animation', function(hooks) {
|
|
|
|
setupRenderingTest(hooks);
|
2017-11-16 14:54:06 -08:00
|
|
|
|
2018-08-09 10:41:52 -07:00
|
|
|
test('it renders', async function(assert) {
|
|
|
|
await render(hbs`{{pendulum-ellipsis-animation}}`);
|
2017-11-16 14:54:06 -08:00
|
|
|
|
2018-08-09 10:41:52 -07:00
|
|
|
assert.equal(document.querySelector('.ellipsis-loader').tagName, 'DIV', 'renders a div with component class');
|
|
|
|
assert.equal(document.querySelectorAll('.ellipsis-loader__circle').length, 3, 'contains three circle elements');
|
|
|
|
});
|
2017-11-16 14:54:06 -08:00
|
|
|
});
|