Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey committed Jun 10, 2022
1 parent 3cc5c62 commit 4e4a930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/generate-map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down

0 comments on commit 4e4a930

Please sign in to comment.