Skip to content

Commit fd7ea40

Browse files
committed
fix tests
1 parent 41781a6 commit fd7ea40

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/vs/base/test/common/linkedText.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,46 @@ import { parseLinkedText } from 'vs/base/common/linkedText';
88

99
suite('LinkedText', () => {
1010
test('parses correctly', () => {
11-
assert.deepEqual(parseLinkedText(''), []);
12-
assert.deepEqual(parseLinkedText('hello'), ['hello']);
13-
assert.deepEqual(parseLinkedText('hello there'), ['hello there']);
14-
assert.deepEqual(parseLinkedText('Some message with [link text](http://link.href).'), [
11+
assert.deepEqual(parseLinkedText('').nodes, []);
12+
assert.deepEqual(parseLinkedText('hello').nodes, ['hello']);
13+
assert.deepEqual(parseLinkedText('hello there').nodes, ['hello there']);
14+
assert.deepEqual(parseLinkedText('Some message with [link text](http://link.href).').nodes, [
1515
'Some message with ',
1616
{ label: 'link text', href: 'http://link.href' },
1717
'.'
1818
]);
19-
assert.deepEqual(parseLinkedText('Some message with [link text](http://link.href "and a title").'), [
19+
assert.deepEqual(parseLinkedText('Some message with [link text](http://link.href "and a title").').nodes, [
2020
'Some message with ',
2121
{ label: 'link text', href: 'http://link.href', title: 'and a title' },
2222
'.'
2323
]);
24-
assert.deepEqual(parseLinkedText('Some message with [link text](random stuff).'), [
24+
assert.deepEqual(parseLinkedText('Some message with [link text](random stuff).').nodes, [
2525
'Some message with [link text](random stuff).'
2626
]);
27-
assert.deepEqual(parseLinkedText('Some message with [https link](https://link.href).'), [
27+
assert.deepEqual(parseLinkedText('Some message with [https link](https://link.href).').nodes, [
2828
'Some message with ',
2929
{ label: 'https link', href: 'https://link.href' },
3030
'.'
3131
]);
32-
assert.deepEqual(parseLinkedText('Some message with [https link](https:).'), [
32+
assert.deepEqual(parseLinkedText('Some message with [https link](https:).').nodes, [
3333
'Some message with [https link](https:).'
3434
]);
35-
assert.deepEqual(parseLinkedText('Some message with [a command](command:foobar).'), [
35+
assert.deepEqual(parseLinkedText('Some message with [a command](command:foobar).').nodes, [
3636
'Some message with ',
3737
{ label: 'a command', href: 'command:foobar' },
3838
'.'
3939
]);
40-
assert.deepEqual(parseLinkedText('Some message with [a command](command:).'), [
40+
assert.deepEqual(parseLinkedText('Some message with [a command](command:).').nodes, [
4141
'Some message with [a command](command:).'
4242
]);
43-
assert.deepEqual(parseLinkedText('link [one](command:foo "nice") and link [two](http://foo)...'), [
43+
assert.deepEqual(parseLinkedText('link [one](command:foo "nice") and link [two](http://foo)...').nodes, [
4444
'link ',
4545
{ label: 'one', href: 'command:foo', title: 'nice' },
4646
' and link ',
4747
{ label: 'two', href: 'http://foo' },
4848
'...'
4949
]);
50-
assert.deepEqual(parseLinkedText('link\n[one](command:foo "nice")\nand link [two](http://foo)...'), [
50+
assert.deepEqual(parseLinkedText('link\n[one](command:foo "nice")\nand link [two](http://foo)...').nodes, [
5151
'link\n',
5252
{ label: 'one', href: 'command:foo', title: 'nice' },
5353
'\nand link ',

0 commit comments

Comments
 (0)