parent
4de58fe2e0
commit
36820ce320
@ -51,6 +51,10 @@ describe("V2XmlFormatter", () => {
|
||||
testFormatter(xmlFormatter, options, "maintain-comment-formatting");
|
||||
});
|
||||
|
||||
it("should handle single-quotes in attributes", () => {
|
||||
testFormatter(xmlFormatter, options, "single-quotes");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
4
src/test/test-data/single-quotes.formatted.xml
Normal file
4
src/test/test-data/single-quotes.formatted.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<root>
|
||||
<element attr='1' />
|
||||
<element attr='2' />
|
||||
</root>
|
4
src/test/test-data/single-quotes.unformatted.xml
Normal file
4
src/test/test-data/single-quotes.unformatted.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<root>
|
||||
<element attr='1' />
|
||||
<element attr='2' />
|
||||
</root>
|
Loading…
Reference in New Issue
Block a user