Skip to content

Commit

Permalink
disable nest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Apr 24, 2021
1 parent 6d0faf7 commit 4eec75a
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions test/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand All @@ -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', () => {
Expand Down

0 comments on commit 4eec75a

Please sign in to comment.