chore: 🤖 remove rose::nav::breadcrumbs (#2750)
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16790
This commit is contained in:
1 parent
b4d9cd5bb7
commit
69d127a89e
5 files changed
-86
No files matched your search
@@ -1,31 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render, find, findAll } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | rose/nav/breadcrumbs', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`<Rose::Nav::Breadcrumbs />`);
|
||||
assert.ok(find('.rose-nav-breadcrumbs'));
|
||||
});
|
||||
|
||||
test('it renders with attributes', async function (assert) {
|
||||
await render(hbs`<Rose::Nav::Breadcrumbs id="breadcrumbs"/>`);
|
||||
assert.ok(find('#breadcrumbs'));
|
||||
});
|
||||
|
||||
test('it renders with breadcrumb links', async function (assert) {
|
||||
await render(hbs`<Rose::Nav::Breadcrumbs as |breadcrumbs|>
|
||||
<breadcrumbs.link @route="index" />
|
||||
<breadcrumbs.link @route="index" />
|
||||
</Rose::Nav::Breadcrumbs>`);
|
||||
assert.strictEqual(findAll('.rose-nav-link').length, 2);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user