Pretty Self-Closing Tags

Issue: #149
This commit is contained in:
Josh Johnson 2018-05-29 21:56:29 -04:00
parent 07b47c4748
commit 156e1ab435
5 changed files with 25 additions and 0 deletions

View file

@ -17,6 +17,7 @@ describe("V2XmlFormatter", () => {
insertSpaces: true,
tabSize: 4
},
enforcePrettySelfClosingTagOnFormat: false,
newLine: "\r\n",
removeCommentsOnMinify: false,
splitAttributesOnFormat: false,
@ -60,7 +61,11 @@ describe("V2XmlFormatter", () => {
});
it("should allow users to enforce space before self-closing tag slash", () => {
options.enforcePrettySelfClosingTagOnFormat = true;
testFormatter(xmlFormatter, options, "issue-149");
options.enforcePrettySelfClosingTagOnFormat = false;
});
});