diff --git a/test/parser.ts b/test/parser.ts index b3e7f8fd..5d136813 100644 --- a/test/parser.ts +++ b/test/parser.ts @@ -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', () => {