@@ -304,21 +304,21 @@ it('should replace the all ":storage" path with the actual storage path', functi
304
304
' <body data-theme="default">\n' +
305
305
' <h2 data-line="0" id="Headline">Headline</h2>\n' +
306
306
' <p data-line="2">\n' +
307
- ' <img src="file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + '0.6r4zdgc22xp.png" alt="dummyImage.png" >\n' +
307
+ ' <img src="file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + '0.6r4zdgc22xp.png" alt="dummyImage.png" >\n' +
308
308
' </p>\n' +
309
309
' <p data-line="4">\n' +
310
- ' <a href="file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + '0.q2i4iw0fyx.pdf">dummyPDF.pdf</a>\n' +
310
+ ' <a href="file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + '0.q2i4iw0fyx.pdf">dummyPDF.pdf</a>\n' +
311
311
' </p>\n' +
312
312
' <p data-line="6">\n' +
313
- ' <img src="file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + 'd6c5ee92.jpg" alt="dummyImage2.jpg">\n' +
313
+ ' <img src="file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + 'd6c5ee92.jpg" alt="dummyImage2.jpg">\n' +
314
314
' </p>\n' +
315
315
' <pre class="fence" data-line="8">\n' +
316
316
' <span class="filename"></span>\n' +
317
- ' <div class="gallery" data-autoplay="undefined" data-height="undefined">file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + 'f939b2c3.jpg</div>\n' +
317
+ ' <div class="gallery" data-autoplay="undefined" data-height="undefined">file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + 'f939b2c3.jpg</div>\n' +
318
318
' </pre>\n' +
319
319
' <pre class="fence" data-line="10">\n' +
320
320
' <span class="filename"></span>\n' +
321
- ' <div class="gallery" data-autoplay="undefined" data-height="undefined">file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + 'f939b2c3.jpg</div>\n' +
321
+ ' <div class="gallery" data-autoplay="undefined" data-height="undefined">file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + 'f939b2c3.jpg</div>\n' +
322
322
' </pre>\n' +
323
323
' </body>\n' +
324
324
'</html>'
@@ -353,10 +353,10 @@ it('should replace the ":storage" path with the actual storage path when they ha
353
353
' <body data-theme="default">\n' +
354
354
' <h2 data-line="0" id="Headline">Headline</h2>\n' +
355
355
' <p data-line="2">\n' +
356
- ' <img src="file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + '0.6r4zdgc22xp.png" alt="dummyImage.png" >\n' +
356
+ ' <img src="file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + '0.6r4zdgc22xp.png" alt="dummyImage.png" >\n' +
357
357
' </p>\n' +
358
358
' <p data-line="4">\n' +
359
- ' <a href="file:///' + storagePath + path . sep + storageFolder + path . sep + noteKey + path . sep + '0.q2i4iw0fyx.pdf">dummyPDF.pdf</a>\n' +
359
+ ' <a href="file:///' + storagePath + '/' + storageFolder + '/' + noteKey + '/' + '0.q2i4iw0fyx.pdf">dummyPDF.pdf</a>\n' +
360
360
' </p>\n' +
361
361
' </body>\n' +
362
362
'</html>'
0 commit comments