summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-03 23:27:37 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-03 23:27:37 +0900
commitd456e5e45c8a2367c9362b1e1d1e87d6959b6977 (patch)
treeafd13b2fb3c9680c592c05dcf10239f21b24a36f /test
parentFix #2047 (diff)
downloadmisskey-d456e5e45c8a2367c9362b1e1d1e87d6959b6977.tar.gz
misskey-d456e5e45c8a2367c9362b1e1d1e87d6959b6977.tar.bz2
misskey-d456e5e45c8a2367c9362b1e1d1e87d6959b6977.zip
Implement new MFM syntax
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index df0f0be045..1a22e1491b 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -31,6 +31,14 @@ describe('Text', () => {
], tokens);
});
+ it('big', () => {
+ const tokens = analyze('***Strawberry*** Pasta');
+ assert.deepEqual([
+ { type: 'big', content: '***Strawberry***', bold: 'Strawberry' },
+ { type: 'text', content: ' Pasta' }
+ ], tokens);
+ });
+
it('mention', () => {
const tokens = analyze('@himawari お腹ペコい');
assert.deepEqual([