We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8c4e20 commit 456f4dcCopy full SHA for 456f4dc
packages/html-email-formatter/src/index.test.ts
@@ -35,7 +35,13 @@ test('email formatter should respect the whitespace', () => {
35
<div> <!--[if MAC]> hello <![endif]--> </div>
36
`);
37
38
- expect(result).toBe(`<div> <!--[if MAC]> hello <![endif]--> </div>`);
+ expect(result).toBe(`<div> <!--[if MAC]> hello <![endif]--> </div>`);
39
+});
40
+
41
+test('should keep no whitespace if there was none', () => {
42
+ const result = emailFormatter(`<div><!--[if MAC]>hello<![endif]--></div>`);
43
44
+ expect(result).toBe(`<div><!--[if MAC]>hello<![endif]--></div>`);
45
});
46
47
test('email formatter should properly format from a single line', () => {
0 commit comments