Add Failing Test

Issue: #178
This commit is contained in:
Josh Johnson 2018-05-29 19:39:09 -04:00
parent be30a5671b
commit b65009728c
3 changed files with 14 additions and 0 deletions

View File

@ -55,6 +55,10 @@ describe("V2XmlFormatter", () => {
testFormatter(xmlFormatter, options, "single-quotes");
});
it("should not add extra line breaks before start tags", () => {
testFormatter(xmlFormatter, options, "issue-178");
});
});
});

View File

@ -0,0 +1,9 @@
<root>
<entry>
<field1>One</field1>
<field2/>
<field3>Three</field3>
<field4/>
<field5>Five</field5>
</entry>
</root>

View File

@ -0,0 +1 @@
<root><entry><field1>One</field1><field2/><field3>Three</field3><field4/><field5>Five</field5></entry></root>