From a6b996565f93d6ee166df1153de584c5497cf569 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Mon, 31 Jan 2022 10:32:47 -0500 Subject: [PATCH] Add more test cases --- tests/arbitrary-properties.test.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tests/arbitrary-properties.test.js b/tests/arbitrary-properties.test.js index 094c43fd5d56..e3a4f02a5bce 100644 --- a/tests/arbitrary-properties.test.js +++ b/tests/arbitrary-properties.test.js @@ -352,13 +352,27 @@ it('should not generate invalid CSS', () => { let config = { content: [ { - raw: html`
`, + raw: html` +
+
+
+
+
+ `, + + // NOTE: In this case `stillworks:/example` being generated is not ideal + // but it at least doesn't produce invalid CSS when run through prettier + // So we can let it through since it is technically valid }, ], corePlugins: { preflight: false }, } return run('@tailwind utilities', config).then((result) => { - return expect(result.css).toMatchFormattedCss(css``) + return expect(result.css).toMatchFormattedCss(css` + .\[stillworks\:\/example\] { + stillworks: /example; + } + `) }) })