diff --git a/tests/lib/find-title-test.js b/tests/lib/find-title-test.js index 55061b15..3e02273d 100644 --- a/tests/lib/find-title-test.js +++ b/tests/lib/find-title-test.js @@ -9,9 +9,11 @@ const { findNoteTitle } = require('browser/lib/findNoteTitle') test('findNoteTitle#find should return a correct title (string)', t => { // [input, expected] const testCases = [ - ['# hoge\nhoge', 'hoge'], + ['# hoge\nfuga', 'hoge'], ['# hoge_hoge_hoge', 'hoge_hoge_hoge'], - ['```\n# hoge\n```\n# fuga', 'fuga'] + ['```\n# hoge\n```\n# fuga', 'fuga'], + ['```\n# hoge\n```', '```'], + ['hoge', 'hoge'], ] testCases.forEach(testCase => {