Skip to content

Commit 456f4dc

Browse files
committed
clean up
1 parent b8c4e20 commit 456f4dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/html-email-formatter/src/index.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ test('email formatter should respect the whitespace', () => {
3535
<div> <!--[if MAC]> hello <![endif]--> </div>
3636
`);
3737

38-
expect(result).toBe(`<div> <!--[if MAC]> hello <![endif]--> </div>`);
38+
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>`);
3945
});
4046

4147
test('email formatter should properly format from a single line', () => {

0 commit comments

Comments
 (0)