install.fairie/dotfiles/.vim/plugged/vim-prettier/tests/__snapshots__/formatting.test.js.snap

330 lines
5.9 KiB
Text
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Prettier formats foo.css file with :Prettier command 1`] = `
".redClass {
background: \\"red\\";
}
#redId {
background: \\"red\\";
}"
`;
exports[`Prettier formats foo.css file with :PrettierAsync command 1`] = `
".redClass {
background: \\"red\\";
}
#redId {
background: \\"red\\";
}"
`;
exports[`Prettier formats foo.graphql file with :Prettier command 1`] = `
"{
baz {
blah
...name
}
bean {
foo
blah
bleh
}
bar {
...name
}
}"
`;
exports[`Prettier formats foo.graphql file with :PrettierAsync command 1`] = `
"{
baz {
blah
...name
}
bean {
foo
blah
bleh
}
bar {
...name
}
}"
`;
exports[`Prettier formats foo.html file with :Prettier command 1`] = `
"<html>
<head>
<title>foo</title>
</head>
<body>
<h1>foo</h1>
</body>
</html>"
`;
exports[`Prettier formats foo.html file with :PrettierAsync command 1`] = `
"<html>
<head>
<title>foo</title>
</head>
<body>
<h1>foo</h1>
</body>
</html>"
`;
exports[`Prettier formats foo.js file with :Prettier command 1`] = `
"const a = () => {
return 2;
};"
`;
exports[`Prettier formats foo.js file with :PrettierAsync command 1`] = `
"const a = () => {
return 2;
};"
`;
exports[`Prettier formats foo.json file with :Prettier command 1`] = `
"{
\\"name\\": \\"foo\\",
\\"bar\\": \\"baz\\"
}"
`;
exports[`Prettier formats foo.json file with :PrettierAsync command 1`] = `
"{
\\"name\\": \\"foo\\",
\\"bar\\": \\"baz\\"
}"
`;
exports[`Prettier formats foo.less file with :Prettier command 1`] = `
".redClass {
background: \\"red\\";
}
#redId {
background: \\"red\\";
}"
`;
exports[`Prettier formats foo.less file with :PrettierAsync command 1`] = `
".redClass {
background: \\"red\\";
}
#redId {
background: \\"red\\";
}"
`;
exports[`Prettier formats foo.lua file with :Prettier command 1`] = `
"function deepcopy(orig)
local orig_type = type(orig)
local copy
return copy
end"
`;
exports[`Prettier formats foo.lua file with :PrettierAsync command 1`] = `
"function deepcopy(orig)
local orig_type = type(orig)
local copy
return copy
end"
`;
exports[`Prettier formats foo.md file with :Prettier command 1`] = `
"## foo
Lorem ipsum dolor amet
### bar
- a
- b
- c"
`;
exports[`Prettier formats foo.md file with :PrettierAsync command 1`] = `
"## foo
Lorem ipsum dolor amet
### bar
- a
- b
- c"
`;
exports[`Prettier formats foo.php file with :Prettier command 1`] = `
"<?php
$a = 'a';
$b = $a . $a . ' asda';"
`;
exports[`Prettier formats foo.php file with :PrettierAsync command 1`] = `
"<?php
$a = 'a';
$b = $a . $a . ' asda';"
`;
exports[`Prettier formats foo.rb file with :Prettier command 1`] = `
"[1, 2, 3].each do |i|
p i
end"
`;
exports[`Prettier formats foo.rb file with :PrettierAsync command 1`] = `
"[1, 2, 3].each do |i|
p i
end"
`;
exports[`Prettier formats foo.scss file with :Prettier command 1`] = `
".redClass {
background: \\"red\\";
}
#redId {
background: \\"red\\";
}"
`;
exports[`Prettier formats foo.scss file with :PrettierAsync command 1`] = `
".redClass {
background: \\"red\\";
}
#redId {
background: \\"red\\";
}"
`;
exports[`Prettier formats foo.ts file with :Prettier command 1`] = `
"const a: () => number = () => {
return 2;
};"
`;
exports[`Prettier formats foo.ts file with :PrettierAsync command 1`] = `
"const a: () => number = () => {
return 2;
};"
`;
exports[`Prettier formats foo.vue file with :Prettier command 1`] = `
"<template>
<div class=\\"example\\">{{ msg }}</div>
</template>
<script>
export default {
data() {
return { msg: \\"Hello world!\\" };
}
};
</script>
<style>
.example {
color: red;
}
</style>
<custom1>
This could be e.g. documentation for the component.
</custom1>"
`;
exports[`Prettier formats foo.vue file with :PrettierAsync command 1`] = `
"<template>
<div class=\\"example\\">{{ msg }}</div>
</template>
<script>
export default {
data() {
return { msg: \\"Hello world!\\" };
}
};
</script>
<style>
.example {
color: red;
}
</style>
<custom1>
This could be e.g. documentation for the component.
</custom1>"
`;
exports[`Prettier formats foo.xml file with :Prettier command 1`] = `
"<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" ?>
<!DOCTYPE module PUBLIC \\"-//Puppy Crawl//DTD Check Configuration 1.3//EN\\"
\\"https://www.puppycrawl.com/dtds/configuration_1_3.dtd\\">
<?xml-model href=\\"project.rnc\\" type=\\"application/relax-ng-compact-syntax\\"?>
<!-- foo -->
<svg
xmlns=\\"http://www.w3.org/2000/svg\\"
xmlns:xlink=\\"http://www.w3.org/1999/xlink\\"
width=\\"200\\"
height=\\"100\\"
viewBox=\\"0 0 200 100\\"
>
<title>foo</title>
<desc _attr=\\"attr\\">
bar
</desc>
<style />
</svg>
<!-- bar -->"
`;
exports[`Prettier formats foo.xml file with :PrettierAsync command 1`] = `
"<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" ?>
<!DOCTYPE module PUBLIC \\"-//Puppy Crawl//DTD Check Configuration 1.3//EN\\"
\\"https://www.puppycrawl.com/dtds/configuration_1_3.dtd\\">
<?xml-model href=\\"project.rnc\\" type=\\"application/relax-ng-compact-syntax\\"?>
<!-- foo -->
<svg
xmlns=\\"http://www.w3.org/2000/svg\\"
xmlns:xlink=\\"http://www.w3.org/1999/xlink\\"
width=\\"200\\"
height=\\"100\\"
viewBox=\\"0 0 200 100\\"
>
<title>foo</title>
<desc _attr=\\"attr\\">
bar
</desc>
<style />
</svg>
<!-- bar -->"
`;
exports[`Prettier formats foo.yaml file with :Prettier command 1`] = `
"foo:
bar:
baz:
bleh: ./foo
foobar: foobar
args:
buildno: 1"
`;
exports[`Prettier formats foo.yaml file with :PrettierAsync command 1`] = `
"foo:
bar:
baz:
bleh: ./foo
foobar: foobar
args:
buildno: 1"
`;