summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-25 13:36:40 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-25 13:36:40 +0900
commitf3155ea180a9dfcfad9f8d356e5d334fe8ccf48f (patch)
tree5f810930e134db97aa2e1a163244467d8a0e5d40 /test
parentImprove MFM (diff)
downloadsharkey-f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f.tar.gz
sharkey-f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f.tar.bz2
sharkey-f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f.zip
[MFM] Add center syntax
Resolve #1775
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 ac52041bb3..98184c9ad1 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -641,6 +641,17 @@ describe('Text', () => {
], tokens);
});
});
+
+ describe('center', () => {
+ it('simple', () => {
+ const tokens = analyze('<center>foo</center>');
+ assert.deepEqual([
+ nodeWithChildren('center', [
+ text('foo')
+ ]),
+ ], tokens);
+ });
+ });
});
describe('toHtml', () => {