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

18 lines
646 B
TypeScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | notifications/dialog/dialog-header', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async function(assert) {
const header = 'Test Header';
this.set('header', header);
await render(hbs`{{notifications/dialog/dialog-header header=this.header}}`);
assert.dom('.notification-confirm-modal__header').exists();
assert.dom('.notification-confirm-modal__heading-text').hasText(header);
});
});