diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 31f44e7..dc4e04d 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -103,6 +103,10 @@ describe("V2XmlFormatter", () => { it("should not touch CDATA content", () => { testFormatter(xmlFormatter, options, "issue-293"); }); + + it("should not add trailing whitespace", () => { + testFormatter(xmlFormatter, options, "issue-288"); + }); }); describe("#minifyXml(xml, options)", () => { diff --git a/src/test/test-data/issue-288.formatted.xml b/src/test/test-data/issue-288.formatted.xml new file mode 100644 index 0000000..8231c91 --- /dev/null +++ b/src/test/test-data/issue-288.formatted.xml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/test/test-data/issue-288.unformatted.xml b/src/test/test-data/issue-288.unformatted.xml new file mode 100644 index 0000000..8231c91 --- /dev/null +++ b/src/test/test-data/issue-288.unformatted.xml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file