mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Change findNoteTitle.find() to findNoteTitle.findNoteTitle() in test
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const test = require('ava')
|
const test = require('ava')
|
||||||
const findNoteTitle = require('browser/lib/findNoteTitle')
|
const { findNoteTitle } = require('browser/lib/findNoteTitle')
|
||||||
|
|
||||||
// Unit test
|
// Unit test
|
||||||
test('findNoteTitle#find should return a correct title (string)', t => {
|
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 => {
|
testCases.forEach(testCase => {
|
||||||
const [input, expected] = 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}`)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user