2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-14 06:28:24 +00:00
iconify/packages/ember-demo/tests/integration/components/icon-demo-test.js

27 lines
735 B
JavaScript
Raw Normal View History

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');
});
});