diff --git a/tests/dataApi/attachmentManagement.test.js b/tests/dataApi/attachmentManagement.test.js index 2759445c..1bad1e89 100644 --- a/tests/dataApi/attachmentManagement.test.js +++ b/tests/dataApi/attachmentManagement.test.js @@ -685,19 +685,19 @@ it('should remove the all ":storage" and noteKey references', function() { '

\n' + ' dummyImage.png\n' + '

\n' + '

\n' + ' dummyPDF.pdf\n' + '

\n' + '

\n' + ' dummyImage2.jpg\n' + '

\n' + ' \n' + @@ -713,29 +713,29 @@ it('should make sure that "removeStorageAndNoteReferences" works with markdown c const noteKey = 'noteKey' const testInput = 'Test input' + - '![' + + '![imageName](' + systemUnderTest.STORAGE_FOLDER_PLACEHOLDER + path.win32.sep + noteKey + path.win32.sep + - 'image.jpg](imageName}) \n' + - '[' + + 'image.jpg) \n' + + '[pdf](' + systemUnderTest.STORAGE_FOLDER_PLACEHOLDER + path.posix.sep + noteKey + path.posix.sep + - 'pdf.pdf](pdf})' + 'pdf.pdf)' const expectedOutput = 'Test input' + - '![' + + '![imageName](' + systemUnderTest.DESTINATION_FOLDER + - path.sep + - 'image.jpg](imageName}) \n' + - '[' + + path.posix.sep + + 'image.jpg) \n' + + '[pdf](' + systemUnderTest.DESTINATION_FOLDER + - path.sep + - 'pdf.pdf](pdf})' + path.posix.sep + + 'pdf.pdf)' const actual = systemUnderTest.removeStorageAndNoteReferences( testInput, noteKey