Files
threshold-ui/addons/rose/tests/integration/components/rose/anonymous-test.js
T
2024-05-31 11:29:24 -07:00

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