1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-25 07:36:24 +09:00

[Test] Better tests

This commit is contained in:
syuilo 2019-01-31 15:19:59 +09:00
parent 0a8488a78c
commit 6f1e47f0b3
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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', [