mirror of
https://github.com/iconify/iconify.git
synced 2024-12-14 14:38:25 +00:00
27 lines
735 B
JavaScript
27 lines
735 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
module('Integration | Component | icon-demo', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
// Handle any actions with this.set('myAction', function(val) { ... });
|
|
|
|
await render(hbs`<IconDemo />`);
|
|
|
|
assert.dom(this.element).hasText('');
|
|
|
|
// Template block usage:
|
|
await render(hbs`
|
|
<IconDemo>
|
|
template block text
|
|
</IconDemo>
|
|
`);
|
|
|
|
assert.dom(this.element).hasText('template block text');
|
|
});
|
|
});
|