diff options
Diffstat (limited to 'test/test-utils.js')
-rw-r--r-- | test/test-utils.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/test-utils.js b/test/test-utils.js deleted file mode 100644 index 6a71d834a..000000000 --- a/test/test-utils.js +++ /dev/null @@ -1,18 +0,0 @@ -import cheerio from 'cheerio'; -import prettier from 'prettier'; -import { fileURLToPath } from 'url'; -/** load html */ -export function doc(html) { - return cheerio.load(html); -} - -/** - * format the contents of an astro file - * @param contents {string} - */ -export function format(contents) { - return prettier.format(contents, { - parser: 'astro', - plugins: [fileURLToPath(new URL('../prettier-plugin-astro', import.meta.url))], - }); -} |