diff options
author | 2024-08-08 05:12:50 -0500 | |
---|---|---|
committer | 2024-08-08 12:12:50 +0200 | |
commit | 72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch) | |
tree | 6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/integrations/vue/test/toTsx.test.js | |
parent | 85de47cd982fd13c6286bcc0be384a220996ccbd (diff) | |
download | astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.gz astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.zst astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.zip |
update formatter config (#11640)
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/vue/test/toTsx.test.js')
-rw-r--r-- | packages/integrations/vue/test/toTsx.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/vue/test/toTsx.test.js b/packages/integrations/vue/test/toTsx.test.js index bf2af56a9..b91b5cad1 100644 --- a/packages/integrations/vue/test/toTsx.test.js +++ b/packages/integrations/vue/test/toTsx.test.js @@ -22,7 +22,7 @@ describe('toTSX function', () => { // Replace the expectations below with the expected result based on your logic assert.strictEqual( result, - `export default function ${className}__AstroComponent_(_props: Record<string, any>): any {}` + `export default function ${className}__AstroComponent_(_props: Record<string, any>): any {}`, ); }); it('should correctly transform Vue code to TSX', () => { @@ -45,7 +45,7 @@ describe('toTSX function', () => { const result = toTSX(vueCode, className); assert.strictEqual( result.replace(/\s/g, ''), - `import{defineProps}from'vue';constProps=defineProps({msg:String})exportdefaultfunction${className}__AstroComponent_(_props:typeofProps):any{<div></div>}` + `import{defineProps}from'vue';constProps=defineProps({msg:String})exportdefaultfunction${className}__AstroComponent_(_props:typeofProps):any{<div></div>}`, ); }); }); |