File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ interface BaseWrapper {
4747 exists ( ) : boolean
4848 visible ( ) : boolean
4949
50- attributes ( ) : { [ name : string ] : string } | void
50+ attributes ( ) : { [ name : string ] : string }
5151 classes ( ) : Array < string > | void
52- props ( ) : { [ name : string ] : any } | void
52+ props ( ) : { [ name : string ] : any }
5353
5454 hasAttribute ( attribute : string , value : string ) : boolean
5555 hasClass ( className : string ) : boolean
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ bool = wrapper.contains(ClassComponent)
1313bool = wrapper . exists ( )
1414
1515bool = wrapper . hasAttribute ( 'foo' , 'bar' )
16+ bool = wrapper . attributes ( ) . foo === 'bar'
1617bool = wrapper . hasClass ( 'foo-class' )
1718bool = wrapper . hasProp ( 'checked' , true )
19+ bool = wrapper . props ( ) . checked
1820bool = wrapper . hasStyle ( 'color' , 'red' )
1921
2022bool = wrapper . is ( normalOptions )
You can’t perform that action at this time.
0 commit comments