From cd1f9a7dbcaab7a0655d07ecd8ee7bda61b14370 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Mon, 6 Jul 2020 22:11:48 -0400 Subject: [PATCH] Remove Debugging Changes --- src/test/extension.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 565a99b..dac0a9a 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -124,20 +124,20 @@ describe("V2XmlFormatter", () => { }); function testFormatter(xmlFormatter: XmlFormatter, options: XmlFormattingOptions, fileLabel: string): void { - const expectedFormattedXml = TestDataLoader.load(`${fileLabel}.formatted.xml`).replace(/\r/, ""); - const unformattedXml = TestDataLoader.load(`${fileLabel}.unformatted.xml`).replace(/\r/, ""); + const expectedFormattedXml = TestDataLoader.load(`${fileLabel}.formatted.xml`); + const unformattedXml = TestDataLoader.load(`${fileLabel}.unformatted.xml`); - const actualFormattedXml = xmlFormatter.formatXml(unformattedXml, options).replace(/\r/, ""); + const actualFormattedXml = xmlFormatter.formatXml(unformattedXml, options); // tslint:disable-next-line assert.ok((actualFormattedXml === expectedFormattedXml), `Actual formatted XML does not match expected formatted XML.\n\nACTUAL\n${actualFormattedXml}\n\nEXPECTED\n${expectedFormattedXml}`); } function testMinifier(xmlFormatter: XmlFormatter, options: XmlFormattingOptions, fileLabel: string): void { - const expectedMinifiedXml = TestDataLoader.load(`${fileLabel}.minified.xml`).replace(/\r/, ""); - const unminifiedXml = TestDataLoader.load(`${fileLabel}.unminified.xml`).replace(/\r/, ""); + const expectedMinifiedXml = TestDataLoader.load(`${fileLabel}.minified.xml`); + const unminifiedXml = TestDataLoader.load(`${fileLabel}.unminified.xml`); - const actualMinifiedXml = xmlFormatter.minifyXml(unminifiedXml, options).replace(/\r/, ""); + const actualMinifiedXml = xmlFormatter.minifyXml(unminifiedXml, options); // tslint:disable-next-line assert.ok((actualMinifiedXml === expectedMinifiedXml), `Actual minified XML does not match expected minified XML.\n\nACTUAL\n${actualMinifiedXml}\n\nEXPECTED\n${expectedMinifiedXml}`);