2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2020-05-18 17:59:32 -04:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
|
|
|
import { render } from '@ember/test-helpers';
|
|
|
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
|
|
2020-05-19 18:10:39 -04:00
|
|
|
module('Integration | Helper | app-name', function (hooks) {
|
2020-05-18 17:59:32 -04:00
|
|
|
setupRenderingTest(hooks);
|
|
|
|
|
|
2020-05-19 18:10:39 -04:00
|
|
|
test('it renders', async function (assert) {
|
2020-10-05 17:20:04 -04:00
|
|
|
assert.expect(1);
|
2020-05-18 17:59:32 -04:00
|
|
|
await render(hbs`{{app-name}}`);
|
2022-07-07 11:18:51 -07:00
|
|
|
assert.strictEqual(this.element.textContent.trim(), 'App Name');
|
2020-05-18 17:59:32 -04:00
|
|
|
});
|
|
|
|
|
});
|