summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-20 17:52:11 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-20 17:52:11 +0900
commitf8ba73bebf1763b5182321388d2ce1d081605eb3 (patch)
treeef69008a0e4f3976201d872b036e11b09bf258da /test
parentRemove unused import (diff)
downloadmisskey-f8ba73bebf1763b5182321388d2ce1d081605eb3.tar.gz
misskey-f8ba73bebf1763b5182321388d2ce1d081605eb3.tar.bz2
misskey-f8ba73bebf1763b5182321388d2ce1d081605eb3.zip
[MFM] Add <i> syntax
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 44e7d6904e..e9253ebc43 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -883,6 +883,15 @@ describe('MFM', () => {
});
describe('italic', () => {
+ it('<i>', () => {
+ const tokens = analyze('<i>foo</i>');
+ assert.deepStrictEqual(tokens, [
+ tree('italic', [
+ text('foo')
+ ], {}),
+ ]);
+ });
+
it('underscore', () => {
const tokens = analyze('_foo_');
assert.deepStrictEqual(tokens, [