Skip to content

Commit

Permalink
Fix test data
Browse files Browse the repository at this point in the history
We respect Emacs' indentation settings now, and those default to 4
spaces, so that is what the tests are seeing.
  • Loading branch information
raxod502 committed May 23, 2024
1 parent 1bf4474 commit 35ee479
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions test/formatters/samplecode/prettier-css/out.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
body {
padding-left: 11em;
font-family: Georgia, "Times New Roman", Times, serif;
color: purple;
background-color: #d8da3d;
padding-left: 11em;
font-family: Georgia, "Times New Roman", Times, serif;
color: purple;
background-color: #d8da3d;
}
14 changes: 7 additions & 7 deletions test/formatters/samplecode/prettier-javascript/out.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
function HelloWorld({
greeting = "hello",
greeted = '"World"',
silent = false,
onMouseOver,
greeting = "hello",
greeted = '"World"',
silent = false,
onMouseOver,
}) {
if (!greeting) {
return null;
}
if (!greeting) {
return null;
}
}
34 changes: 17 additions & 17 deletions test/formatters/samplecode/prettier-json/out.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
"arrowParens": "always",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
}
6 changes: 3 additions & 3 deletions test/formatters/samplecode/prettier-scss/out.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $bgcolor: lightblue;
$textcolor: darkblue;
$fontsize: 18px; /* Use the variables */
body {
background-color: $bgcolor;
color: $textcolor;
font-size: $fontsize;
background-color: $bgcolor;
color: $textcolor;
font-size: $fontsize;
}

0 comments on commit 35ee479

Please sign in to comment.