🚀 Allow to pass option as Json without ?

This commit is contained in:
platane
2022-04-21 19:04:21 +02:00
parent 8f1481341a
commit 98feaa6035
3 changed files with 85 additions and 2 deletions

View File

@@ -7,7 +7,11 @@ import { parseEntry } from "../outputsOptions";
`/out.svg?{"color_snake":"yellow","color_dots":["#000","#111","#222","#333","#444"]}`,
`/out.svg {"color_snake":"yellow"}`,
"/out.svg?color_snake=orange&color_dots=#000,#111,#222,#333,#444&dark_color_dots=#a00,#a11,#a22,#a33,#a44",
"/out.svg?.gif.svg?color_snake=orange",
].forEach((entry) =>
it(`should parse ${entry}`, () => {
expect(parseEntry(entry)).toMatchSnapshot();