Files
threshold-ui/addons/rose/tests/integration/components/rose/anonymous-test.js
T

19 lines
578 B
JavaScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | rose/anonymous', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
await render(hbs`
{{#rose/anonymous tagName='main'}}
template block text
{{/rose/anonymous}}
`);
assert.ok(find('main'));
assert.strictEqual(this.element.textContent.trim(), 'template block text');
});
});