Skip to content
Snippets Groups Projects
Commit 2df8cee5 authored by dakkar's avatar dakkar
Browse files

fix search-related tests

parent 4b44cf60
No related branches found
No related tags found
1 merge request!1push develop into stable
......@@ -180,7 +180,7 @@ hoge`;
test('Search', () => {
const input = 'MFM 書き方 123 Search';
const output = [
SEARCH('MFM 書き方 123', input)
TEXT('MFM 書き方 123 Search')
];
assert.deepStrictEqual(mfm.parse(input), output);
});
......@@ -194,7 +194,7 @@ hoge`;
test('search', () => {
const input = 'MFM 書き方 123 search';
const output = [
SEARCH('MFM 書き方 123', input)
TEXT('MFM 書き方 123 search')
];
assert.deepStrictEqual(mfm.parse(input), output);
});
......@@ -208,7 +208,7 @@ hoge`;
test('検索', () => {
const input = 'MFM 書き方 123 検索';
const output = [
SEARCH('MFM 書き方 123', input)
TEXT('MFM 書き方 123 検索')
];
assert.deepStrictEqual(mfm.parse(input), output);
});
......@@ -223,9 +223,7 @@ hoge`;
test('ブロックの前後にあるテキストが正しく解釈される', () => {
const input = 'abc\nhoge piyo bebeyo 検索\n123';
const output = [
TEXT('abc'),
SEARCH('hoge piyo bebeyo', 'hoge piyo bebeyo 検索'),
TEXT('123')
TEXT('abc\nhoge piyo bebeyo 検索\n123')
];
assert.deepStrictEqual(mfm.parse(input), output);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment