Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
32 lines
587 B
JavaScript
32 lines
587 B
JavaScript
import { outdent } from "outdent";
|
|
import prettierPluginDummyToml from "../../../../config/prettier-plugins/prettier-plugin-dummy-toml/index.js";
|
|
|
|
runFormatTest(
|
|
{
|
|
importMeta: import.meta,
|
|
snippets: [
|
|
outdent`
|
|
+++
|
|
TOML Front Matter content
|
|
+++
|
|
`,
|
|
outdent`
|
|
---toml
|
|
TOML Front Matter content
|
|
---
|
|
`,
|
|
],
|
|
},
|
|
[
|
|
"markdown",
|
|
"mdx",
|
|
"css",
|
|
"scss",
|
|
"less",
|
|
"html",
|
|
// Can't test since it doesn't print new line
|
|
// "glimmer",
|
|
],
|
|
{ plugins: [prettierPluginDummyToml] },
|
|
);
|