summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-27 16:18:04 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-27 16:18:04 +0900
commite5d938150386b32d2aa49e1a825453309209d9e4 (patch)
treee9f29f0cf0535f9464f1386a835743d6695e4dd3 /test
parent[Server] Introduce admin stream channel (diff)
downloadsharkey-e5d938150386b32d2aa49e1a825453309209d9e4.tar.gz
sharkey-e5d938150386b32d2aa49e1a825453309209d9e4.tar.bz2
sharkey-e5d938150386b32d2aa49e1a825453309209d9e4.zip
[MFM] Add spin syntax
Resolve #4003
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 a5ea4b2933..d8cba8ee15 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -244,6 +244,15 @@ describe('MFM', () => {
]);
});
+ it('spin', () => {
+ const tokens = analyze('<spin>:foo:</spin>');
+ assert.deepStrictEqual(tokens, [
+ tree('spin', [
+ leaf('emoji', { name: 'foo' })
+ ], {}),
+ ]);
+ });
+
describe('motion', () => {
it('by triple brackets', () => {
const tokens = analyze('(((foo)))');