From da7b4041a0f9806352ba9299a4fd226d2b5a53e4 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Fri, 17 Aug 2018 18:28:09 -0400 Subject: [PATCH] Add Failing Test --- src/test/extension.test.ts | 4 ++++ src/test/test-data/issue-200.formatted.xml | 4 ++++ src/test/test-data/issue-200.unformatted.xml | 1 + 3 files changed, 9 insertions(+) create mode 100644 src/test/test-data/issue-200.formatted.xml create mode 100644 src/test/test-data/issue-200.unformatted.xml diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index c09df83..8c3627b 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -88,6 +88,10 @@ describe("V2XmlFormatter", () => { testFormatter(xmlFormatter, options, "issue-194"); }); + it("should support mixed content", () => { + testFormatter(xmlFormatter, options, "issue-200"); + }); + }); }); diff --git a/src/test/test-data/issue-200.formatted.xml b/src/test/test-data/issue-200.formatted.xml new file mode 100644 index 0000000..2453567 --- /dev/null +++ b/src/test/test-data/issue-200.formatted.xml @@ -0,0 +1,4 @@ +beginning text + data + another data +end text \ No newline at end of file diff --git a/src/test/test-data/issue-200.unformatted.xml b/src/test/test-data/issue-200.unformatted.xml new file mode 100644 index 0000000..d11c144 --- /dev/null +++ b/src/test/test-data/issue-200.unformatted.xml @@ -0,0 +1 @@ +beginning textdataanother dataend text \ No newline at end of file