@@ -3,7 +3,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
3
3
import { By } from '@angular/platform-browser' ;
4
4
import { CdkComboboxModule } from './combobox-module' ;
5
5
import { CdkCombobox } from './combobox' ;
6
- import { dispatchKeyboardEvent , dispatchMouseEvent } from '../.. /cdk/testing/private' ;
6
+ import { dispatchKeyboardEvent , dispatchMouseEvent } from '@angular /cdk/testing/private' ;
7
7
import { DOWN_ARROW , ESCAPE } from '@angular/cdk/keycodes' ;
8
8
import { CdkComboboxPopup } from '@angular/cdk-experimental/combobox/combobox-popup' ;
9
9
@@ -25,8 +25,7 @@ describe('Combobox', () => {
25
25
26
26
beforeEach ( waitForAsync ( ( ) => {
27
27
TestBed . configureTestingModule ( {
28
- imports : [ CdkComboboxModule ] ,
29
- declarations : [ ComboboxToggle ] ,
28
+ imports : [ CdkComboboxModule , ComboboxToggle ] ,
30
29
} ) . compileComponents ( ) ;
31
30
} ) ) ;
32
31
@@ -189,8 +188,7 @@ describe('Combobox', () => {
189
188
190
189
beforeEach ( waitForAsync ( ( ) => {
191
190
TestBed . configureTestingModule ( {
192
- imports : [ CdkComboboxModule ] ,
193
- declarations : [ ComboboxToggle ] ,
191
+ imports : [ CdkComboboxModule , ComboboxToggle ] ,
194
192
} ) . compileComponents ( ) ;
195
193
} ) ) ;
196
194
@@ -260,8 +258,7 @@ describe('Combobox', () => {
260
258
261
259
beforeEach ( waitForAsync ( ( ) => {
262
260
TestBed . configureTestingModule ( {
263
- imports : [ CdkComboboxModule ] ,
264
- declarations : [ ComboboxToggle ] ,
261
+ imports : [ CdkComboboxModule , ComboboxToggle ] ,
265
262
} ) . compileComponents ( ) ;
266
263
} ) ) ;
267
264
@@ -385,6 +382,8 @@ describe('Combobox', () => {
385
382
<button id="applyButton" (click)="toggleCombobox.updateAndClose(input.value)">Apply</button>
386
383
</div>
387
384
</ng-template>` ,
385
+ standalone : true ,
386
+ imports : [ CdkComboboxModule ] ,
388
387
} )
389
388
class ComboboxToggle {
390
389
@ViewChild ( 'input' ) inputElement : ElementRef < HTMLInputElement > ;
0 commit comments