meilisearch-admin/tests/integration/components/divider-test.js
2022-09-07 17:03:33 +03:00

26 lines
743 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 | divider', 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`<Divider />`);
assert.dom(this.element).hasText('');
// Template block usage:
await render(hbs`
<Divider>
template block text
</Divider>
`);
assert.dom(this.element).hasText('template block text');
});
});