File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ testing.describe(`Wrapper`, () => {
5555 } )
5656 . it ( `Wrapper.unwrap()` , ( ) => {
5757 expect ( Wrapper . unwrap ( `${ opening } ${ text } ${ closing } ` , opening , closing ) ) . toEqual ( text ) ;
58- expect ( Wrapper . unwrap ( `${ opening } ${ text } ${ closing } ` , undefined , closing ) ) . toEqual ( `${ opening } ${ text } ${ '' } ` ) ;
59- expect ( Wrapper . unwrap ( `${ opening } ${ text } ${ closing } ` , opening , undefined ) ) . toEqual ( `${ '' } ${ text } ${ closing } ` ) ;
58+ expect ( Wrapper . unwrap ( `${ opening } ${ text } ${ closing } ` , undefined as any , closing ) ) . toEqual ( `${ opening } ${ text } ${ '' } ` ) ;
59+ expect ( Wrapper . unwrap ( `${ opening } ${ text } ${ closing } ` , opening , undefined as any ) ) . toEqual ( `${ '' } ${ text } ${ closing } ` ) ;
6060 } )
6161
6262 ;
@@ -66,6 +66,7 @@ testing.describe(`Wrapper`, () => {
6666 testing
6767 . it ( `[Symbol.toStringTag]` , ( ) => {
6868 expect ( typeOf ( wrapper ) ) . toEqual ( 'wrapper' ) ;
69+ expect ( Object . prototype . toString . call ( wrapper ) ) . toEqual ( '[object Wrapper]' ) ;
6970 } ) ;
7071 } )
7172
You can’t perform that action at this time.
0 commit comments