@@ -29,6 +29,7 @@ describe('inject source', () => {
2929 )
3030 expect ( output ) . toBeUndefined ( )
3131 } )
32+
3233 it ( "shouldn't augment react fragments if they start with React.Fragment" , ( ) => {
3334 const output = addSourceToJsx (
3435 `
@@ -40,6 +41,7 @@ describe('inject source', () => {
4041 )
4142 expect ( output ) . toBeUndefined ( )
4243 } )
44+
4345 describe ( 'FunctionExpression' , ( ) => {
4446 it ( 'should work with deeply nested custom JSX syntax' , ( ) => {
4547 const output = removeEmptySpace (
@@ -195,6 +197,7 @@ describe('inject source', () => {
195197 )
196198 } )
197199 } )
200+
198201 describe ( 'function declarations' , ( ) => {
199202 it ( 'should not duplicate the same property if there are nested functions' , ( ) => {
200203 const output = removeEmptySpace (
@@ -221,6 +224,7 @@ describe('inject source', () => {
221224 ` ) ,
222225 )
223226 } )
227+
224228 it ( 'should apply data-tsd-source from parent props if an external import' , ( ) => {
225229 const output = removeEmptySpace (
226230 addSourceToJsx (
@@ -246,6 +250,7 @@ function test({...props }) {
246250 ` ) ,
247251 )
248252 } )
253+
249254 it ( 'props not destructured' , ( ) => {
250255 const output = removeEmptySpace (
251256 addSourceToJsx (
@@ -446,6 +451,7 @@ function test({...props }) {
446451 )
447452 } )
448453 } )
454+
449455 describe ( 'variable declared functions' , ( ) => {
450456 it ( 'works with function and props not destructured' , ( ) => {
451457 const output = removeEmptySpace (
@@ -647,6 +653,7 @@ function test({...props }) {
647653 )
648654 } )
649655 } )
656+
650657 describe ( 'arrow functions' , ( ) => {
651658 it ( 'works with arrow function and props not destructured' , ( ) => {
652659 const output = removeEmptySpace (
0 commit comments