diff --git a/tests/vue/multiparser/__snapshots__/jsfmt.spec.js.snap b/tests/vue/multiparser/__snapshots__/jsfmt.spec.js.snap index 15beef5d56c7..e082e313c5f2 100644 --- a/tests/vue/multiparser/__snapshots__/jsfmt.spec.js.snap +++ b/tests/vue/multiparser/__snapshots__/jsfmt.spec.js.snap @@ -102,6 +102,70 @@ export default { ================================================================================ `; +exports[`snippet: empty format 1`] = ` +====================================options===================================== +parsers: ["vue"] +printWidth: 80 + | printWidth +=====================================input====================================== + +=====================================output===================================== + + + + +================================================================================ +`; + +exports[`snippet: new line format 1`] = ` +====================================options===================================== +parsers: ["vue"] +printWidth: 80 + | printWidth +=====================================input====================================== + + + +=====================================output===================================== + + + + +================================================================================ +`; + +exports[`snippet: new line format 2`] = ` +====================================options===================================== +parsers: ["vue"] +printWidth: 80 + | printWidth +=====================================input====================================== + +   + +=====================================output===================================== + + + + +================================================================================ +`; + +exports[`snippet: spaces format 1`] = ` +====================================options===================================== +parsers: ["vue"] +printWidth: 80 + | printWidth +=====================================input====================================== + +=====================================output===================================== + + + + +================================================================================ +`; + exports[`template-bind.vue format 1`] = ` ====================================options===================================== parsers: ["vue"] diff --git a/tests/vue/multiparser/jsfmt.spec.js b/tests/vue/multiparser/jsfmt.spec.js index 2fd7eede986d..85705b90f4a2 100644 --- a/tests/vue/multiparser/jsfmt.spec.js +++ b/tests/vue/multiparser/jsfmt.spec.js @@ -1 +1,18 @@ -run_spec(__dirname, ["vue"]); +run_spec({dirname: __dirname, snippets: [ + { + name: "empty", + code: '' + }, + { + name: "spaces", + code: ' ' + }, + { + name: "new line", + code: '\n \n' + }, + { + name: "new line", + code: '\n \u2005 \n' + }, +]}, ["vue"]);