11import { dispatchMouseEvent } from '@angular/cdk/testing/private' ;
2- import {
3- Component ,
4- DebugElement ,
5- provideCheckNoChangesConfig ,
6- QueryList ,
7- ViewChild ,
8- ViewChildren ,
9- } from '@angular/core' ;
2+ import { Component , DebugElement , QueryList , ViewChild , ViewChildren } from '@angular/core' ;
103import { ComponentFixture , TestBed , fakeAsync , flush , tick } from '@angular/core/testing' ;
114import { FormControl , FormsModule , NgModel , ReactiveFormsModule } from '@angular/forms' ;
125import { By } from '@angular/platform-browser' ;
@@ -19,21 +12,6 @@ import {
1912} from './index' ;
2013
2114describe ( 'MatButtonToggle with forms' , ( ) => {
22- beforeEach ( fakeAsync ( ( ) => {
23- TestBed . configureTestingModule ( {
24- providers : [ provideCheckNoChangesConfig ( { exhaustive : false } ) ] ,
25- imports : [
26- MatButtonToggleModule ,
27- FormsModule ,
28- ReactiveFormsModule ,
29- ButtonToggleGroupWithNgModel ,
30- ButtonToggleGroupWithFormControl ,
31- ButtonToggleGroupWithIndirectDescendantToggles ,
32- ButtonToggleGroupWithFormControlAndDynamicButtons ,
33- ] ,
34- } ) ;
35- } ) ) ;
36-
3715 describe ( 'using FormControl' , ( ) => {
3816 let fixture : ComponentFixture < ButtonToggleGroupWithFormControl > ;
3917 let groupDebugElement : DebugElement ;
@@ -333,27 +311,6 @@ describe('MatButtonToggle with forms', () => {
333311} ) ;
334312
335313describe ( 'MatButtonToggle without forms' , ( ) => {
336- beforeEach ( fakeAsync ( ( ) => {
337- TestBed . configureTestingModule ( {
338- providers : [ provideCheckNoChangesConfig ( { exhaustive : false } ) ] ,
339- imports : [
340- MatButtonToggleModule ,
341- ButtonTogglesInsideButtonToggleGroup ,
342- ButtonTogglesInsideButtonToggleGroupMultiple ,
343- FalsyButtonTogglesInsideButtonToggleGroupMultiple ,
344- ButtonToggleGroupWithInitialValue ,
345- StandaloneButtonToggle ,
346- ButtonToggleWithAriaLabel ,
347- ButtonToggleWithAriaLabelledby ,
348- RepeatedButtonTogglesWithPreselectedValue ,
349- ButtonToggleWithTabindex ,
350- ButtonToggleWithStaticName ,
351- ButtonToggleWithStaticChecked ,
352- ButtonToggleWithStaticAriaAttributes ,
353- ] ,
354- } ) ;
355- } ) ) ;
356-
357314 describe ( 'inside of an exclusive selection group' , ( ) => {
358315 let fixture : ComponentFixture < ButtonTogglesInsideButtonToggleGroup > ;
359316 let groupDebugElement : DebugElement ;
0 commit comments