Skip to content

Commit 667fd3a

Browse files
committed
Fix test
1 parent 461e24b commit 667fd3a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tests/dataApi/attachmentManagement.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -685,19 +685,19 @@ it('should remove the all ":storage" and noteKey references', function() {
685685
' <p data-line="2">\n' +
686686
' <img src="' +
687687
storageFolder +
688-
path.sep +
688+
path.posix.sep +
689689
'0.6r4zdgc22xp.png" alt="dummyImage.png" >\n' +
690690
' </p>\n' +
691691
' <p data-line="4">\n' +
692692
' <a href="' +
693693
storageFolder +
694-
path.sep +
694+
path.posix.sep +
695695
'0.q2i4iw0fyx.pdf">dummyPDF.pdf</a>\n' +
696696
' </p>\n' +
697697
' <p data-line="6">\n' +
698698
' <img src="' +
699699
storageFolder +
700-
path.sep +
700+
path.posix.sep +
701701
'd6c5ee92.jpg" alt="dummyImage2.jpg">\n' +
702702
' </p>\n' +
703703
' </body>\n' +
@@ -713,29 +713,29 @@ it('should make sure that "removeStorageAndNoteReferences" works with markdown c
713713
const noteKey = 'noteKey'
714714
const testInput =
715715
'Test input' +
716-
'![' +
716+
'![imageName](' +
717717
systemUnderTest.STORAGE_FOLDER_PLACEHOLDER +
718718
path.win32.sep +
719719
noteKey +
720720
path.win32.sep +
721-
'image.jpg](imageName}) \n' +
722-
'[' +
721+
'image.jpg) \n' +
722+
'[pdf](' +
723723
systemUnderTest.STORAGE_FOLDER_PLACEHOLDER +
724724
path.posix.sep +
725725
noteKey +
726726
path.posix.sep +
727-
'pdf.pdf](pdf})'
727+
'pdf.pdf)'
728728

729729
const expectedOutput =
730730
'Test input' +
731-
'![' +
731+
'![imageName](' +
732732
systemUnderTest.DESTINATION_FOLDER +
733-
path.sep +
734-
'image.jpg](imageName}) \n' +
735-
'[' +
733+
path.posix.sep +
734+
'image.jpg) \n' +
735+
'[pdf](' +
736736
systemUnderTest.DESTINATION_FOLDER +
737-
path.sep +
738-
'pdf.pdf](pdf})'
737+
path.posix.sep +
738+
'pdf.pdf)'
739739
const actual = systemUnderTest.removeStorageAndNoteReferences(
740740
testInput,
741741
noteKey

0 commit comments

Comments
 (0)