From 4e4a930f4a1328ffd3347e9bc137a66a8234f05c Mon Sep 17 00:00:00 2001 From: martyanov-av Date: Fri, 10 Jun 2022 16:04:36 +0300 Subject: [PATCH] fix --- tests/e2e/generate-map.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/generate-map.spec.ts b/tests/e2e/generate-map.spec.ts index 5023e041..5a5448ea 100644 --- a/tests/e2e/generate-map.spec.ts +++ b/tests/e2e/generate-map.spec.ts @@ -10,7 +10,7 @@ const geretateMapTestTemplate = (testTitle, testRootPath, md2md = true, md2html const outputContent = convertSlashToWindowsBackSlashes(getFileContent(outputPath + '/files.json')); const expectedContent = convertSlashToWindowsBackSlashes(getFileContent(expectedOutputPath + '/files.json')); - const prepareFileJsonToCompare = (file) => JSON.parse(file).files.sort() + const prepareFileJsonToCompare = (file) => JSON.stringify(JSON.parse(file).files.sort()) expect(prepareFileJsonToCompare(outputContent)).toEqual(prepareFileJsonToCompare(expectedContent)); });