File tree Expand file tree Collapse file tree 2 files changed +3
-41
lines changed Expand file tree Collapse file tree 2 files changed +3
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { h } from '@stencil/core' ;
2
- import { newSpecPage } from '@stencil/core/testing' ;
3
-
1
+ import { Radio } from '../radio.tsx' ;
4
2
import { RadioGroup } from '../../radio-group/radio-group.tsx' ;
5
- import { Radio } from '../radio ' ;
3
+ import { newSpecPage } from '@stencil/core/testing ' ;
6
4
7
5
describe ( 'ion-radio' , ( ) => {
8
6
it ( 'should set a default value' , async ( ) => {
@@ -32,19 +30,4 @@ describe('ion-radio', () => {
32
30
33
31
expect ( radio . classList . contains ( 'radio-checked' ) ) . toBe ( true ) ;
34
32
} ) ;
35
-
36
- it ( 'click event is triggered once' , async ( ) => {
37
- const mockOnClick = jest . fn ( ) ;
38
-
39
- const page = await newSpecPage ( {
40
- components : [ Radio ] ,
41
- template : ( ) => < ion-radio onClick = { mockOnClick } > Radio</ ion-radio > ,
42
- } ) ;
43
-
44
- const radio = page . body . querySelector ( 'ion-radio' ) ;
45
-
46
- await radio . click ( ) ;
47
-
48
- expect ( mockOnClick ) . toHaveBeenCalledTimes ( 1 ) ;
49
- } ) ;
50
- } ) ;
33
+ } ) ;
You can’t perform that action at this time.
0 commit comments