diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 7eb816a..45666e7 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -76,6 +76,10 @@ describe("V2XmlFormatter", () => { testFormatter(xmlFormatter, options, "issue-187"); }); + it("should not ruin attributes with unusual characters", () => { + testFormatter(xmlFormatter, options, "issue-189"); + }); + }); }); diff --git a/src/test/test-data/issue-189.formatted.xml b/src/test/test-data/issue-189.formatted.xml new file mode 100644 index 0000000..b3a3d19 --- /dev/null +++ b/src/test/test-data/issue-189.formatted.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/src/test/test-data/issue-189.unformatted.xml b/src/test/test-data/issue-189.unformatted.xml new file mode 100644 index 0000000..952ff72 --- /dev/null +++ b/src/test/test-data/issue-189.unformatted.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file