@@ -20,7 +20,7 @@ describe('slotHandler', () => {
20
20
{ comments : true } ,
21
21
) . ast
22
22
if ( ast ) {
23
- traverse ( ast , doc , [ propHandler ] , { functional : true } )
23
+ traverse ( ast , doc , [ propHandler ] , { functional : true , rootLeadingComment : '' } )
24
24
expect ( doc . toObject ( ) . props ) . toMatchObject ( { size : { type : { name : 'undefined' } } } )
25
25
} else {
26
26
fail ( )
@@ -40,7 +40,7 @@ describe('slotHandler', () => {
40
40
{ comments : true } ,
41
41
) . ast
42
42
if ( ast ) {
43
- traverse ( ast , doc , [ propHandler ] , { functional : true } )
43
+ traverse ( ast , doc , [ propHandler ] , { functional : true , rootLeadingComment : '' } )
44
44
expect ( doc . toObject ( ) . props ) . toMatchObject ( { name : { type : { name : 'undefined' } } } )
45
45
} else {
46
46
fail ( )
@@ -58,7 +58,7 @@ describe('slotHandler', () => {
58
58
{ comments : true } ,
59
59
) . ast
60
60
if ( ast ) {
61
- traverse ( ast , doc , [ propHandler ] , { functional : true } )
61
+ traverse ( ast , doc , [ propHandler ] , { functional : true , rootLeadingComment : '' } )
62
62
expect ( doc . toObject ( ) . props ) . toBeUndefined ( )
63
63
} else {
64
64
fail ( )
@@ -76,7 +76,7 @@ describe('slotHandler', () => {
76
76
{ comments : true } ,
77
77
) . ast
78
78
if ( ast ) {
79
- traverse ( ast , doc , [ propHandler ] , { functional : true } )
79
+ traverse ( ast , doc , [ propHandler ] , { functional : true , rootLeadingComment : '' } )
80
80
expect ( doc . toObject ( ) . props ) . toBeUndefined ( )
81
81
} else {
82
82
fail ( )
0 commit comments