mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
[Test] Better tests
This commit is contained in:
parent
0a8488a78c
commit
6f1e47f0b3
13
test/mfm.ts
13
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', [
|
||||
|
Loading…
Reference in New Issue
Block a user