* style: 💄 Update trailing commas in API * style: 💄 Update trailing commas in core * style: 💄 Update trailing commas in rose * style: 💄 Update trailing commas in admin * style: 💄 Update trailing commas in desktop
33 lines
946 B
JavaScript
33 lines
946 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
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 | branded-card', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
await render(hbs`<BrandedCard />`);
|
|
assert.ok(find('.branded-card'));
|
|
assert.ok(find('.branded-card-title'));
|
|
assert.ok(find('.branded-card-description'));
|
|
});
|
|
|
|
test('it renders with content', async function (assert) {
|
|
await render(hbs`<BrandedCard
|
|
@title="title"
|
|
@description="description"
|
|
/>`);
|
|
assert.strictEqual(find('.branded-card-title').textContent.trim(), 'title');
|
|
assert.strictEqual(
|
|
find('.branded-card-description').textContent.trim(),
|
|
'description',
|
|
);
|
|
});
|
|
});
|