From 5a90a0c121e0bb5a9a5c9deaf3e15c916985697f Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Thu, 31 May 2018 18:41:52 -0400 Subject: [PATCH] Add Failing Test Issue: #185 --- src/test/extension.test.ts | 4 ++++ src/test/test-data/issue-185.formatted.xml | 5 +++++ src/test/test-data/issue-185.unformatted.xml | 1 + 3 files changed, 10 insertions(+) create mode 100644 src/test/test-data/issue-185.formatted.xml create mode 100644 src/test/test-data/issue-185.unformatted.xml diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 50adb2b..e230267 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -68,6 +68,10 @@ describe("V2XmlFormatter", () => { options.enforcePrettySelfClosingTagOnFormat = false; }); + it("should properly format closing tag after self-closing tag", () => { + testFormatter(xmlFormatter, options, "issue-185"); + }); + }); }); diff --git a/src/test/test-data/issue-185.formatted.xml b/src/test/test-data/issue-185.formatted.xml new file mode 100644 index 0000000..c91115a --- /dev/null +++ b/src/test/test-data/issue-185.formatted.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/test/test-data/issue-185.unformatted.xml b/src/test/test-data/issue-185.unformatted.xml new file mode 100644 index 0000000..92db740 --- /dev/null +++ b/src/test/test-data/issue-185.unformatted.xml @@ -0,0 +1 @@ + \ No newline at end of file