1
1
import { 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' ;
10
3
import { ComponentFixture , TestBed , fakeAsync , flush , tick } from '@angular/core/testing' ;
11
4
import { FormControl , FormsModule , NgModel , ReactiveFormsModule } from '@angular/forms' ;
12
5
import { By } from '@angular/platform-browser' ;
@@ -19,21 +12,6 @@ import {
19
12
} from './index' ;
20
13
21
14
describe ( '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
-
37
15
describe ( 'using FormControl' , ( ) => {
38
16
let fixture : ComponentFixture < ButtonToggleGroupWithFormControl > ;
39
17
let groupDebugElement : DebugElement ;
@@ -333,27 +311,6 @@ describe('MatButtonToggle with forms', () => {
333
311
} ) ;
334
312
335
313
describe ( '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
-
357
314
describe ( 'inside of an exclusive selection group' , ( ) => {
358
315
let fixture : ComponentFixture < ButtonTogglesInsideButtonToggleGroup > ;
359
316
let groupDebugElement : DebugElement ;
0 commit comments