test(vue): add tests for script lang (#14912)

Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
This commit is contained in:
authored and GitHub committed 2023-06-13 23:02:21 +08:00
1 parent 348f9fd409
commit db1cdc007f
4 files changed
+75

No files matched your search

@@ -1,5 +1,45 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`lang-empty.vue format 1`] = `
====================================options=====================================
parsers: ["vue"]
printWidth: 80
| printWidth
=====================================input======================================
<script lang="">
should.
be. well.formatted(
);</script>
=====================================output=====================================
<script lang="">
should.be.well.formatted();
</script>
================================================================================
`;
exports[`lang-js.vue format 1`] = `
====================================options=====================================
parsers: ["vue"]
printWidth: 80
| printWidth
=====================================input======================================
<script lang="js">
should.
be. well.formatted(
);</script>
=====================================output=====================================
<script lang="js">
should.be.well.formatted();
</script>
================================================================================
`;
exports[`lang-jsx.vue format 1`] = `
====================================options=====================================
parsers: ["vue"]
@@ -35,6 +75,26 @@ export default {
================================================================================
`;
exports[`lang-none.vue format 1`] = `
====================================options=====================================
parsers: ["vue"]
printWidth: 80
| printWidth
=====================================input======================================
<script>
should.
be. well.formatted(
);</script>
=====================================output=====================================
<script>
should.be.well.formatted();
</script>
================================================================================
`;
exports[`lang-ts.vue format 1`] = `
====================================options=====================================
parsers: ["vue"]
@@ -0,0 +1,5 @@
<script lang="">
should.
be. well.formatted(
);</script>
+5
View File
@@ -0,0 +1,5 @@
<script lang="js">
should.
be. well.formatted(
);</script>
@@ -0,0 +1,5 @@
<script>
should.
be. well.formatted(
);</script>