Add Tests for Issue #294

This commit is contained in:
Josh Johnson 2020-07-25 22:17:47 -04:00
parent 95702e6355
commit e6ca8f597f
3 changed files with 18 additions and 0 deletions

View file

@ -107,6 +107,10 @@ describe("V2XmlFormatter", () => {
it("should not add trailing whitespace", () => {
testFormatter(xmlFormatter, options, "issue-288");
});
it("should handle mixed content on the same line as another element", () => {
testFormatter(xmlFormatter, options, "issue-294");
});
});
describe("#minifyXml(xml, options)", () => {

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0">
<div>
ThisCausesBug <img src="test"/>
<img src="test"/>
</div>
</xsl:stylesheet>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0">
<div>
ThisCausesBug <img src="test"/>
<img src="test"/>
</div>
</xsl:stylesheet>