1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fix lint error

This commit is contained in:
Junyoung Choi
2018-04-26 16:35:47 -07:00
parent b33e6b232c
commit 2e3e0bc1d8
5 changed files with 29 additions and 29 deletions

View File

@@ -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 () {
let storageFolder = systemUnderTest.DESTINATION_FOLDER
let testInput =
const storageFolder = systemUnderTest.DESTINATION_FOLDER
const testInput =
'<html>\n' +
' <head>\n' +
' //header\n' +
@@ -133,8 +133,8 @@ it('should replace the all ":storage" path with the actual storage path', functi
' </p>\n' +
' </body>\n' +
'</html>'
let storagePath = '<<dummyStoragePath>>'
let expectedOutput =
const storagePath = '<<dummyStoragePath>>'
const expectedOutput =
'<html>\n' +
' <head>\n' +
' //header\n' +
@@ -152,17 +152,17 @@ it('should replace the all ":storage" path with the actual storage path', functi
' </p>\n' +
' </body>\n' +
'</html>'
let actual = systemUnderTest.fixLocalURLS(testInput, storagePath)
const actual = systemUnderTest.fixLocalURLS(testInput, storagePath)
expect(actual).toEqual(expectedOutput)
})
it('should test that generateAttachmentMarkdown works correct both with previews and without', function () {
let fileName = 'fileName'
let path = 'path'
const fileName = 'fileName'
const path = 'path'
let expected = `![${fileName}](${path})`
let actual = systemUnderTest.generateAttachmentMarkdown(fileName, path, true)
expect(actual).toEqual(expected)
expected = `[${fileName}](${path})`
actual = systemUnderTest.generateAttachmentMarkdown(fileName, path, false)
expect(actual).toEqual(expected)
})
})