mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
20 lines
447 B
JavaScript
20 lines
447 B
JavaScript
import { outdent } from "outdent";
|
|
|
|
const snippets = [
|
|
{
|
|
code: outdent`
|
|
block_with_ideographic_space: |
|
|
\u{3000}x
|
|
`,
|
|
output: outdent`
|
|
block_with_ideographic_space: |
|
|
\u{3000}x
|
|
`,
|
|
},
|
|
].map((test) => ({ ...test, output: test.output + "\n" }));
|
|
|
|
runFormatTest({ importMeta: import.meta, snippets }, ["yaml"]);
|
|
runFormatTest({ importMeta: import.meta, snippets }, ["yaml"], {
|
|
proseWrap: "always",
|
|
});
|