summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-31 15:19:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-31 15:19:59 +0900
commit6f1e47f0b339c80112af881a85e196fee04a1166 (patch)
treead5fca09696a8698dd66c72d793e652b3c5da634 /test
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-6f1e47f0b339c80112af881a85e196fee04a1166.tar.gz
sharkey-6f1e47f0b339c80112af881a85e196fee04a1166.tar.bz2
sharkey-6f1e47f0b339c80112af881a85e196fee04a1166.zip
[Test] Better tests
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index eb4a97a812..28e8c23b4b 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -255,7 +255,18 @@ describe('MFM', () => {
});
describe('spin', () => {
- it('simple', () => {
+ it('text', () => {
+ const tokens = parse('<spin>foo</spin>');
+ assert.deepStrictEqual(tokens, [
+ tree('spin', [
+ text('foo')
+ ], {
+ attr: null
+ }),
+ ]);
+ });
+
+ it('emoji', () => {
const tokens = parse('<spin>:foo:</spin>');
assert.deepStrictEqual(tokens, [
tree('spin', [