Files
threshold-ui/ui/desktop/tests/integration/components/branded-card-test.js
T
Zhihe Li bcf004b8a4 Reformat codebase with trailing commas in functions (#2006)
* 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
2023-11-22 14:07:41 -05:00

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