Skip to content

Commit

Permalink
Add Failing Test
Browse files Browse the repository at this point in the history
Issue: #149
  • Loading branch information
DotJoshJohnson committed May 30, 2018
1 parent 6a92fa9 commit 07b47c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ describe("V2XmlFormatter", () => {
testFormatter(xmlFormatter, options, "issue-178");
});

it("should allow users to enforce space before self-closing tag slash", () => {
testFormatter(xmlFormatter, options, "issue-149");
});

});

});
Expand Down
9 changes: 9 additions & 0 deletions src/test/test-data/issue-149.formatted.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<root>
<entry>
<field1>One</field1>
<field2 />
<field3>Three</field3>
<field4 />
<field5>Five</field5>
</entry>
</root>
1 change: 1 addition & 0 deletions src/test/test-data/issue-149.unformatted.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<root><entry><field1>One</field1><field2/><field3>Three</field3><field4/><field5>Five</field5></entry></root>

0 comments on commit 07b47c4

Please sign in to comment.