1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Change findNoteTitle.find() to findNoteTitle.findNoteTitle() in test

This commit is contained in:
asmsuechan
2017-05-05 22:10:52 -07:00
parent 20411a2fd5
commit d4865adf6a

View File

@@ -3,7 +3,7 @@
*/
const test = require('ava')
const findNoteTitle = require('browser/lib/findNoteTitle')
const { findNoteTitle } = require('browser/lib/findNoteTitle')
// Unit test
test('findNoteTitle#find should return a correct title (string)', t => {
@@ -16,7 +16,7 @@ test('findNoteTitle#find should return a correct title (string)', t => {
testCases.forEach(testCase => {
const [input, expected] = testCase
t.is(findNoteTitle.find(input), expected, `Test for find() input: ${input} expected: ${expected}`)
t.is(findNoteTitle(input), expected, `Test for find() input: ${input} expected: ${expected}`)
})
})