From 69a7a9164bede4989d5644f84a8ca2f710667a2f Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Tue, 12 Jun 2018 20:11:52 -0400 Subject: [PATCH] Add Failing Test Issue: #193 --- src/test/extension.test.ts | 4 ++++ src/test/test-data/issue-193.formatted.xml | 12 ++++++++++++ src/test/test-data/issue-193.unformatted.xml | 12 ++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 src/test/test-data/issue-193.formatted.xml create mode 100644 src/test/test-data/issue-193.unformatted.xml diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 45666e7..a53a598 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -80,6 +80,10 @@ describe("V2XmlFormatter", () => { testFormatter(xmlFormatter, options, "issue-189"); }); + it("should not add extra line breaks before closing tags", () => { + testFormatter(xmlFormatter, options, "issue-193"); + }); + }); }); diff --git a/src/test/test-data/issue-193.formatted.xml b/src/test/test-data/issue-193.formatted.xml new file mode 100644 index 0000000..18b4d70 --- /dev/null +++ b/src/test/test-data/issue-193.formatted.xml @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/src/test/test-data/issue-193.unformatted.xml b/src/test/test-data/issue-193.unformatted.xml new file mode 100644 index 0000000..e157813 --- /dev/null +++ b/src/test/test-data/issue-193.unformatted.xml @@ -0,0 +1,12 @@ + + + \ No newline at end of file