From 36820ce32095872359e42bb301f3bbe6f6855c61 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Tue, 29 May 2018 18:43:01 -0400 Subject: [PATCH] Add Failing Test Issue: #177 --- src/test/extension.test.ts | 4 ++++ src/test/test-data/single-quotes.formatted.xml | 4 ++++ src/test/test-data/single-quotes.unformatted.xml | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 src/test/test-data/single-quotes.formatted.xml create mode 100644 src/test/test-data/single-quotes.unformatted.xml diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index ce6f035..3528d0b 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -51,6 +51,10 @@ describe("V2XmlFormatter", () => { testFormatter(xmlFormatter, options, "maintain-comment-formatting"); }); + it("should handle single-quotes in attributes", () => { + testFormatter(xmlFormatter, options, "single-quotes"); + }); + }); }); diff --git a/src/test/test-data/single-quotes.formatted.xml b/src/test/test-data/single-quotes.formatted.xml new file mode 100644 index 0000000..e8aa42e --- /dev/null +++ b/src/test/test-data/single-quotes.formatted.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/test/test-data/single-quotes.unformatted.xml b/src/test/test-data/single-quotes.unformatted.xml new file mode 100644 index 0000000..e8aa42e --- /dev/null +++ b/src/test/test-data/single-quotes.unformatted.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file