Add Failing Test

Issue: #149
This commit is contained in:
Josh Johnson 2018-05-29 21:44:43 -04:00
parent 6a92fa96f2
commit 07b47c4748
3 changed files with 14 additions and 0 deletions

View File

@ -59,6 +59,10 @@ describe("V2XmlFormatter", () => {
testFormatter(xmlFormatter, options, "issue-178"); testFormatter(xmlFormatter, options, "issue-178");
}); });
it("should allow users to enforce space before self-closing tag slash", () => {
testFormatter(xmlFormatter, options, "issue-149");
});
}); });
}); });

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>