File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ interface BaseWrapper {
47
47
exists ( ) : boolean
48
48
visible ( ) : boolean
49
49
50
- attributes ( ) : { [ name : string ] : string } | void
50
+ attributes ( ) : { [ name : string ] : string }
51
51
classes ( ) : Array < string > | void
52
- props ( ) : { [ name : string ] : any } | void
52
+ props ( ) : { [ name : string ] : any }
53
53
54
54
hasAttribute ( attribute : string , value : string ) : boolean
55
55
hasClass ( className : string ) : boolean
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ bool = wrapper.contains(ClassComponent)
13
13
bool = wrapper . exists ( )
14
14
15
15
bool = wrapper . hasAttribute ( 'foo' , 'bar' )
16
+ bool = wrapper . attributes ( ) . foo === 'bar'
16
17
bool = wrapper . hasClass ( 'foo-class' )
17
18
bool = wrapper . hasProp ( 'checked' , true )
19
+ bool = wrapper . props ( ) . checked
18
20
bool = wrapper . hasStyle ( 'color' , 'red' )
19
21
20
22
bool = wrapper . is ( normalOptions )
You can’t perform that action at this time.
0 commit comments