Add Failing Test

Issue: #194
This commit is contained in:
Josh Johnson 2018-06-12 21:22:21 -04:00
parent 97afac0031
commit 9a2147683c
3 changed files with 12 additions and 0 deletions

View File

@ -84,6 +84,10 @@ describe("V2XmlFormatter", () => {
testFormatter(xmlFormatter, options, "issue-193");
});
it("should not add extra whitespace before CDATA", () => {
testFormatter(xmlFormatter, options, "issue-194");
});
});
});

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<madeup>
<some>
<element>This is ok</element>
<other><![CDATA[Here is my cdata]]></other>
</some>
</madeup>

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><madeup><some><element>This is ok</element><other><![CDATA[Here is my cdata]]></other></some></madeup>