mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-29 04:20:00 +00:00
21 lines
696 B
TypeScript
21 lines
696 B
TypeScript
![]() |
import { module, test } from 'qunit';
|
||
|
import { setupRenderingTest } from 'ember-qunit';
|
||
|
import { render } from '@ember/test-helpers';
|
||
|
import hbs from 'htmlbars-inline-precompile';
|
||
|
|
||
|
const modalContentClass = '.notification-confirm-modal__content';
|
||
|
|
||
|
module('Integration | Component | notifications/dialog/dialog-content', function(hooks) {
|
||
|
setupRenderingTest(hooks);
|
||
|
|
||
|
test('Content component rendering', async function(assert) {
|
||
|
const content = 'Dialog Content';
|
||
|
this.set('content', content);
|
||
|
|
||
|
await render(hbs`{{notifications/dialog/dialog-content content=this.content}}`);
|
||
|
|
||
|
assert.dom(modalContentClass).exists();
|
||
|
assert.dom(modalContentClass).hasText(content);
|
||
|
});
|
||
|
});
|