mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
disable nest tests
This commit is contained in:
parent
6d0faf7955
commit
4eec75ad39
1 changed files with 36 additions and 33 deletions
|
@ -608,17 +608,18 @@ describe('FullParser', () => {
|
|||
assert.deepStrictEqual(mfm.parse(input), output);
|
||||
});
|
||||
|
||||
it('do not yield link node even if label is recognisable as a link', () => {
|
||||
const input = 'official instance: [[https://misskey.io/@ai](https://misskey.io/@ai)](https://misskey.io/@ai).';
|
||||
const output = [
|
||||
TEXT('official instance: '),
|
||||
LINK(false, 'https://misskey.io/@ai', [
|
||||
TEXT('[https://misskey.io/@ai](https://misskey.io/@ai)')
|
||||
]),
|
||||
TEXT('.')
|
||||
];
|
||||
assert.deepStrictEqual(mfm.parse(input), output);
|
||||
});
|
||||
// disabled
|
||||
// it('do not yield link node even if label is recognisable as a link', () => {
|
||||
// const input = 'official instance: [[https://misskey.io/@ai](https://misskey.io/@ai)](https://misskey.io/@ai).';
|
||||
// const output = [
|
||||
// TEXT('official instance: '),
|
||||
// LINK(false, 'https://misskey.io/@ai', [
|
||||
// TEXT('[https://misskey.io/@ai](https://misskey.io/@ai)')
|
||||
// ]),
|
||||
// TEXT('.')
|
||||
// ];
|
||||
// assert.deepStrictEqual(mfm.parse(input), output);
|
||||
// });
|
||||
});
|
||||
|
||||
describe('fn v1', () => {
|
||||
|
@ -642,17 +643,18 @@ describe('FullParser', () => {
|
|||
assert.deepStrictEqual(mfm.parse(input), output);
|
||||
});
|
||||
|
||||
it('nest', () => {
|
||||
const input = '[spin.speed=1.1s [shake a]]';
|
||||
const output = [
|
||||
FN('spin', { speed: '1.1s' }, [
|
||||
FN('shake', { }, [
|
||||
TEXT('a')
|
||||
])
|
||||
])
|
||||
];
|
||||
assert.deepStrictEqual(mfm.parse(input), output);
|
||||
});
|
||||
// fn nest is disabled
|
||||
// it('nest', () => {
|
||||
// const input = '[spin.speed=1.1s [shake a]]';
|
||||
// const output = [
|
||||
// FN('spin', { speed: '1.1s' }, [
|
||||
// FN('shake', { }, [
|
||||
// TEXT('a')
|
||||
// ])
|
||||
// ])
|
||||
// ];
|
||||
// assert.deepStrictEqual(mfm.parse(input), output);
|
||||
// });
|
||||
});
|
||||
|
||||
describe('fn v2', () => {
|
||||
|
@ -676,17 +678,18 @@ describe('FullParser', () => {
|
|||
assert.deepStrictEqual(mfm.parse(input), output);
|
||||
});
|
||||
|
||||
it('nest', () => {
|
||||
const input = '$[spin.speed=1.1s $[shake a]]';
|
||||
const output = [
|
||||
FN('spin', { speed: '1.1s' }, [
|
||||
FN('shake', { }, [
|
||||
TEXT('a')
|
||||
])
|
||||
])
|
||||
];
|
||||
assert.deepStrictEqual(mfm.parse(input), output);
|
||||
});
|
||||
// fn nest is disabled
|
||||
// it('nest', () => {
|
||||
// const input = '$[spin.speed=1.1s $[shake a]]';
|
||||
// const output = [
|
||||
// FN('spin', { speed: '1.1s' }, [
|
||||
// FN('shake', { }, [
|
||||
// TEXT('a')
|
||||
// ])
|
||||
// ])
|
||||
// ];
|
||||
// assert.deepStrictEqual(mfm.parse(input), output);
|
||||
// });
|
||||
});
|
||||
|
||||
it('composite', () => {
|
||||
|
|
Loading…
Reference in a new issue