summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-03 15:28:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-03 15:28:00 +0900
commitdaba7fe87c0fe8211a81065a5e300fdb7a36aef0 (patch)
treee1711390e71e42b7cdba5e54c7f06a6868438a2a /test
parentImprove performance (diff)
downloadmisskey-daba7fe87c0fe8211a81065a5e300fdb7a36aef0.tar.gz
misskey-daba7fe87c0fe8211a81065a5e300fdb7a36aef0.tar.bz2
misskey-daba7fe87c0fe8211a81065a5e300fdb7a36aef0.zip
[MFM] Fix title syntax parsing
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 0ef2c91bcb..36232468a3 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -230,6 +230,11 @@ describe('Text', () => {
assert.deepEqual(
{ type: 'title', content: '[yee]\n', title: 'yee'}
, tokens2[0]);
+
+ const tokens3 = analyze('a [a]\nb [b]\nc [c]');
+ assert.deepEqual(
+ { type: 'text', content: 'a [a]\nb [b]\nc [c]' }
+ , tokens2[0]);
});
});