11import { Component } from "@angular/core" ;
22import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core" ;
33import { ComponentFixture , TestBed , waitForAsync } from "@angular/core/testing" ;
4- import { FormsModule } from "@angular/forms" ;
5- import { I18nModule } from "../i18n/index" ;
64import { By } from "@angular/platform-browser" ;
75import { BrowserDynamicTestingModule , platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing" ;
86
97import { Breadcrumb } from "./breadcrumb.component" ;
108import { BreadcrumbItemComponent } from "./breadcrumb-item.component" ;
11- import { BreadcrumbItem } from "./breadcrumb-item.interface" ;
12- import { OverflowMenu } from "carbon-components-angular/dialog" ;
9+ import { OverflowMenu } from "../dialog" ;
1310
1411@Component ( {
1512 selector : "test-breadcrumb" ,
@@ -30,7 +27,12 @@ import { OverflowMenu } from "carbon-components-angular/dialog";
3027 <cds-breadcrumb-item href="#">
3128 Breadcrumb 5
3229 </cds-breadcrumb-item>
33- </cds-breadcrumb>`
30+ </cds-breadcrumb>` ,
31+ standalone : true ,
32+ imports : [
33+ Breadcrumb ,
34+ BreadcrumbItemComponent
35+ ]
3436} )
3537class TestBreadcrumb {
3638 noTrailingSlash = true ;
@@ -43,7 +45,11 @@ class TestBreadcrumb {
4345 [noTrailingSlash]="noTrailingSlash"
4446 [threshold]="threshold"
4547 [items]="items">
46- </cds-breadcrumb>`
48+ </cds-breadcrumb>` ,
49+ standalone : true ,
50+ imports : [
51+ Breadcrumb
52+ ]
4753} )
4854class TestBreadcrumbModel {
4955 noTrailingSlash = true ;
@@ -63,16 +69,10 @@ describe("Breadcrumb", () => {
6369
6470 TestBed . configureTestingModule ( {
6571 imports : [
66- FormsModule ,
67- I18nModule
68- ] ,
69- schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
70- declarations : [
71- Breadcrumb ,
72- BreadcrumbItemComponent ,
7372 TestBreadcrumb ,
7473 TestBreadcrumbModel
75- ]
74+ ] ,
75+ schemas : [ CUSTOM_ELEMENTS_SCHEMA ]
7676 } ) . compileComponents ( ) ;
7777 } ) ) ;
7878
0 commit comments