Skip to content

Commit 5609279

Browse files
committed
update test
1 parent 1ad3a34 commit 5609279

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

test/parser.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ hoge`;
185185
describe('search', () => {
186186
describe('検索構文を使用できる', () => {
187187
test('Search', () => {
188-
const input = 'MFM 書き方 123 Search';
188+
const input = 'MFM 書き方 123 [Search]';
189189
const output = [
190190
SEARCH('MFM 書き方 123', input)
191191
];
@@ -198,27 +198,13 @@ hoge`;
198198
];
199199
assert.deepStrictEqual(mfm.parse(input), output);
200200
});
201-
test('search', () => {
202-
const input = 'MFM 書き方 123 search';
203-
const output = [
204-
SEARCH('MFM 書き方 123', input)
205-
];
206-
assert.deepStrictEqual(mfm.parse(input), output);
207-
});
208201
test('[search]', () => {
209202
const input = 'MFM 書き方 123 [search]';
210203
const output = [
211204
SEARCH('MFM 書き方 123', input)
212205
];
213206
assert.deepStrictEqual(mfm.parse(input), output);
214207
});
215-
test('検索', () => {
216-
const input = 'MFM 書き方 123 検索';
217-
const output = [
218-
SEARCH('MFM 書き方 123', input)
219-
];
220-
assert.deepStrictEqual(mfm.parse(input), output);
221-
});
222208
test('[検索]', () => {
223209
const input = 'MFM 書き方 123 [検索]';
224210
const output = [
@@ -228,10 +214,10 @@ hoge`;
228214
});
229215
});
230216
test('ブロックの前後にあるテキストが正しく解釈される', () => {
231-
const input = 'abc\nhoge piyo bebeyo 検索\n123';
217+
const input = 'abc\nhoge piyo bebeyo [検索]\n123';
232218
const output = [
233219
TEXT('abc'),
234-
SEARCH('hoge piyo bebeyo', 'hoge piyo bebeyo 検索'),
220+
SEARCH('hoge piyo bebeyo', 'hoge piyo bebeyo [検索]'),
235221
TEXT('123')
236222
];
237223
assert.deepStrictEqual(mfm.parse(input), output);

0 commit comments

Comments
 (0)