2019-08-31 20:51:14 -07:00

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