meilisearch-admin/tests/integration/components/toasts-container-test.js
2022-09-13 13:57:48 +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 | toasts-container', 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`<ToastsContainer />`);
assert.dom(this.element).hasText('');
// Template block usage:
await render(hbs`
<ToastsContainer>
template block text
</ToastsContainer>
`);
assert.dom(this.element).hasText('template block text');
});
});