consul/ui-v2/tests/integration/components/feedback-dialog-test.js

31 lines
888 B
JavaScript

import { module, skip, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | feedback dialog', function(hooks) {
setupRenderingTest(hooks);
skip("it doesn't render anything when used inline");
test('it renders', async function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
await render(hbs`{{feedback-dialog}}`);
assert.dom('*').hasText('');
// Template block usage:
await render(hbs`
{{#feedback-dialog}}
{{#block-slot name='success'}}
{{/block-slot}}
{{#block-slot name='error'}}
{{/block-slot}}
{{/feedback-dialog}}
`);
assert.dom('*').hasText('');
});
});