summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-05 17:39:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-05 17:39:26 +0900
commited4860dfd9a84df09888cfbb87ca0896eeb50204 (patch)
treecd3e6df2ec238ba0e4c7c34321a967dc1510c9ee /test
parent[Client] Resolve #3500 (diff)
downloadsharkey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.tar.gz
sharkey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.tar.bz2
sharkey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.zip
[MFM] Add italic syntax
Resolve #3486
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 111f70bef1..1fda4c3727 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -713,6 +713,17 @@ describe('Text', () => {
], tokens);
});
});
+
+ describe('italic', () => {
+ it('simple', () => {
+ const tokens = analyze('<i>foo</i>');
+ assert.deepEqual([
+ nodeWithChildren('italic', [
+ text('foo')
+ ]),
+ ], tokens);
+ });
+ });
});
describe('toHtml', () => {