Skip to content

Commit 8da9652

Browse files
committed
more linked text tests
1 parent 43bf8cd commit 8da9652

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

‎src/vs/base/test/browser/linkedText.test.ts‎

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,12 @@ suite('LinkedText', () => {
4747
{ label: 'two', href: 'http://foo' },
4848
'...'
4949
]);
50+
assert.deepEqual(parseLinkedText('link\n[one](command:foo "nice")\nand link [two](http://foo)...'), [
51+
'link\n',
52+
{ label: 'one', href: 'command:foo', title: 'nice' },
53+
'\nand link ',
54+
{ label: 'two', href: 'http://foo' },
55+
'...'
56+
]);
5057
});
5158
});
52-
53-
/*
54-
[I'm an inline-style link](https://www.google.com)
55-
56-
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
57-
58-
[I'm a reference-style link][Arbitrary case-insensitive reference text]
59-
60-
[I'm a relative reference to a repository file](../blob/master/LICENSE)
61-
62-
[You can use numbers for reference-style link definitions][1]
63-
*/

0 commit comments

Comments
 (0)