24 lines
651 B
JavaScript
24 lines
651 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render, find } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
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');
|
|
});
|
|
});
|