diff --git a/src/test/formatter.test.ts b/src/test/formatter.test.ts index 16bcf3b..b74c243 100644 --- a/src/test/formatter.test.ts +++ b/src/test/formatter.test.ts @@ -193,4 +193,45 @@ suite('JSON Formatter', () => { format(content, expected); }); + + test('bug 29 ', () => { + var content = [ + '
', + '
',
+			'    stuff',
+			'  
', + '
' + ].join('\n'); + + var expected = [ + '
', + '
',
+			'    stuff',
+			'  
', + '
' + ].join('\n'); + + format(content, expected); + }); + + test('bug 29', () => { + var content = [ + '
', + '|
',
+			'    stuff',
+			'  
|', + '
' + ].join('\n'); + + var expected = [ + '
', + '
',
+			'    stuff',
+			'  
', + '
' + ].join('\n'); + + format(content, expected); + }); + }); \ No newline at end of file