mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
Fix lint error
This commit is contained in:
@@ -114,8 +114,8 @@ it('should test that copyAttachment don\'t uses a random file name if not intend
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('should replace the all ":storage" path with the actual storage path', function () {
|
it('should replace the all ":storage" path with the actual storage path', function () {
|
||||||
let storageFolder = systemUnderTest.DESTINATION_FOLDER
|
const storageFolder = systemUnderTest.DESTINATION_FOLDER
|
||||||
let testInput =
|
const testInput =
|
||||||
'<html>\n' +
|
'<html>\n' +
|
||||||
' <head>\n' +
|
' <head>\n' +
|
||||||
' //header\n' +
|
' //header\n' +
|
||||||
@@ -133,8 +133,8 @@ it('should replace the all ":storage" path with the actual storage path', functi
|
|||||||
' </p>\n' +
|
' </p>\n' +
|
||||||
' </body>\n' +
|
' </body>\n' +
|
||||||
'</html>'
|
'</html>'
|
||||||
let storagePath = '<<dummyStoragePath>>'
|
const storagePath = '<<dummyStoragePath>>'
|
||||||
let expectedOutput =
|
const expectedOutput =
|
||||||
'<html>\n' +
|
'<html>\n' +
|
||||||
' <head>\n' +
|
' <head>\n' +
|
||||||
' //header\n' +
|
' //header\n' +
|
||||||
@@ -152,13 +152,13 @@ it('should replace the all ":storage" path with the actual storage path', functi
|
|||||||
' </p>\n' +
|
' </p>\n' +
|
||||||
' </body>\n' +
|
' </body>\n' +
|
||||||
'</html>'
|
'</html>'
|
||||||
let actual = systemUnderTest.fixLocalURLS(testInput, storagePath)
|
const actual = systemUnderTest.fixLocalURLS(testInput, storagePath)
|
||||||
expect(actual).toEqual(expectedOutput)
|
expect(actual).toEqual(expectedOutput)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should test that generateAttachmentMarkdown works correct both with previews and without', function () {
|
it('should test that generateAttachmentMarkdown works correct both with previews and without', function () {
|
||||||
let fileName = 'fileName'
|
const fileName = 'fileName'
|
||||||
let path = 'path'
|
const path = 'path'
|
||||||
let expected = ``
|
let expected = ``
|
||||||
let actual = systemUnderTest.generateAttachmentMarkdown(fileName, path, true)
|
let actual = systemUnderTest.generateAttachmentMarkdown(fileName, path, true)
|
||||||
expect(actual).toEqual(expected)
|
expect(actual).toEqual(expected)
|
||||||
|
|||||||
Reference in New Issue
Block a user