meilisearch-admin/tests/integration/components/description-item-test.js
2022-08-29 14:30:47 +03:00

26 lines
776 B
JavaScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'meiliadmin/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | description-item', 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`<DescriptionItem />`);
assert.dom(this.element).hasText('');
// Template block usage:
await render(hbs`
<DescriptionItem>
template block text
</DescriptionItem>
`);
assert.dom(this.element).hasText('template block text');
});
});