From 20eb507fc9b6af903dd2a8a1cbe2ae1fe5de5290 Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Sat, 28 Sep 2024 19:11:14 +0300 Subject: [PATCH] test: fails to preserve known selectors it should preserve selectors used for email client targeting --- test/transformers/inlineCSS.test.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/transformers/inlineCSS.test.js b/test/transformers/inlineCSS.test.js index 13d0dfe4..80eaea81 100644 --- a/test/transformers/inlineCSS.test.js +++ b/test/transformers/inlineCSS.test.js @@ -13,6 +13,9 @@ const css = ` @media (max-width: 600px) { .sm\\:text-center {text-align: center} } + u + .body .gmail\\:hidden { + display: none; + } ` const html = ` @@ -20,7 +23,7 @@ const html = `

test

- +
testtest
` @@ -47,11 +50,12 @@ describe.concurrent('Inline CSS', () => { @media (max-width: 600px) { .sm\\:text-center {text-align: center} } + u + .body .gmail\\:hidden { display: none; }

test

- +
testtest
`)) }) @@ -72,11 +76,12 @@ describe.concurrent('Inline CSS', () => { @media (max-width: 600px) { .sm\\:text-center {text-align: center} } + u + .body .gmail\\:hidden { display: none; }

test

- +
testtest
`)) }) @@ -144,11 +149,12 @@ describe.concurrent('Inline CSS', () => { @media (max-width: 600px) { .sm-text-center {text-align: center} } + u + .body .gmail-hidden { display: none; }

test

- +
testtest
`)) })