mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
[Test] Better tests
This commit is contained in:
parent
3a041ba718
commit
76c80bd84d
1 changed files with 12 additions and 1 deletions
13
test/mfm.ts
13
test/mfm.ts
|
@ -255,7 +255,18 @@ describe('MFM', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('spin', () => {
|
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>');
|
const tokens = parse('<spin>:foo:</spin>');
|
||||||
assert.deepStrictEqual(tokens, [
|
assert.deepStrictEqual(tokens, [
|
||||||
tree('spin', [
|
tree('spin', [
|
||||||
|
|
Loading…
Reference in a new issue