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:
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>
|
||||
@@ -0,0 +1,5 @@
|
||||
<script lang="js">
|
||||
should.
|
||||
be. well.formatted(
|
||||
|
||||
);</script>
|
||||
@@ -0,0 +1,5 @@
|
||||
<script>
|
||||
should.
|
||||
be. well.formatted(
|
||||
|
||||
);</script>
|
||||
Reference in new issue
Block a user