From 4b8efc7dd4525d1e657f4602092c34226e23dd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Baumg=C3=A4rtner?= Date: Thu, 9 Nov 2023 16:54:49 +0100 Subject: [PATCH] define prettier eol --- src/test/suite/markupParser.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/suite/markupParser.test.ts b/src/test/suite/markupParser.test.ts index 755f343..730c039 100644 --- a/src/test/suite/markupParser.test.ts +++ b/src/test/suite/markupParser.test.ts @@ -75,7 +75,7 @@ suite("MarkupParser Tests", function () { const expectedContent = prettier.format( fs.readFileSync(fixtureFile, FILE_ENCODING).replace(new RegExp(TEST_EXTENSION_PATH_PLACEHOLDER, 'g'), `${TEST_EXTENSION_PATH_PLACEHOLDER_REPLACE_PREFIX}${project_root_dir}`), - { parser: "html", endOfLine: 'auto'} + { parser: "html", endOfLine: 'lf'} ); const testFileUri = vscode.Uri.file(fullFilePath); @@ -83,7 +83,7 @@ suite("MarkupParser Tests", function () { // const rawRenderedHtml = `${testName}${parseMarkup(testFileUri, confluenceContent)}`; const rawRenderedHtml = parseMarkup(testFileUri, confluenceContent); - const formattedContent = prettier.format(rawRenderedHtml, { parser: "html", endOfLine: 'auto'}); + const formattedContent = prettier.format(rawRenderedHtml, { parser: "html", endOfLine: 'lf'}); assert.strictEqual(expectedContent, formattedContent); }); });