Add Failing Test
This commit is contained in:
parent
52039f5d6d
commit
be6bb72b82
3 changed files with 12 additions and 0 deletions
|
@ -95,6 +95,10 @@ describe("V2XmlFormatter", () => {
|
||||||
it("should not remove spaces between the node name and the first attribute within CDATA", () => {
|
it("should not remove spaces between the node name and the first attribute within CDATA", () => {
|
||||||
testFormatter(xmlFormatter, options, "issue-227");
|
testFormatter(xmlFormatter, options, "issue-227");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should optionally add line break after self-closing tag", () => {
|
||||||
|
testFormatter(xmlFormatter, options, "issue-235");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
7
src/test/test-data/issue-235.formatted.xml
Normal file
7
src/test/test-data/issue-235.formatted.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
abc<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
1
src/test/test-data/issue-235.unformatted.xml
Normal file
1
src/test/test-data/issue-235.unformatted.xml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<br/><br/><br/>abc<br/><br/><br/><br/>
|
Loading…
Add table
Reference in a new issue