diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-27 19:12:45 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-01-27 19:12:45 +0900 |
| commit | 62d41023e19dfb551e0d9fd28f1361efaced9765 (patch) | |
| tree | aaea0c571dec5eac8f81ce2e8264af36ba3b72d5 /test | |
| parent | [MFM] spinの中でflipを使えるように (diff) | |
| download | sharkey-62d41023e19dfb551e0d9fd28f1361efaced9765.tar.gz sharkey-62d41023e19dfb551e0d9fd28f1361efaced9765.tar.bz2 sharkey-62d41023e19dfb551e0d9fd28f1361efaced9765.zip | |
Add jump syntax (#4007)
* Add jump syntax
* Fix typo: spin -> jump
* Fix typo
Diffstat (limited to 'test')
| -rw-r--r-- | test/mfm.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts index 7070329f31..0d07add0ee 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -262,6 +262,15 @@ describe('MFM', () => { ]); }); + it('jump', () => { + const tokens = analyze('<jump>:foo:</jump>'); + assert.deepStrictEqual(tokens, [ + tree('jump', [ + leaf('emoji', { name: 'foo' }) + ], {}), + ]); + }); + describe('motion', () => { it('by triple brackets', () => { const tokens = analyze('(((foo)))'); |