diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-25 13:36:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-25 13:36:40 +0900 |
| commit | f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f (patch) | |
| tree | 5f810930e134db97aa2e1a163244467d8a0e5d40 /test | |
| parent | Improve MFM (diff) | |
| download | sharkey-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.ts | 11 |
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', () => { |