mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
added test for markdown image link underline
This commit is contained in:
@@ -103,6 +103,14 @@ suite('markdown.DocumentLinkProvider', () => {
|
||||
assertRangeEqual(link1.range, new vscode.Range(0, 10, 0, 14));
|
||||
assertRangeEqual(link2.range, new vscode.Range(0, 23, 0, 28));
|
||||
});
|
||||
|
||||
test('should handle hyperlinked images', () => {
|
||||
const links = getLinksForFile('[](https://example.com)');
|
||||
assert.strictEqual(links.length, 2);
|
||||
const [link1, link2] = links;
|
||||
assertRangeEqual(link1.range, new vscode.Range(0,25,0,44));
|
||||
assertRangeEqual(link2.range, new vscode.Range(0,13,0,22));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user