(markdown: string)
| 7 | suite('Error Utils', () => { |
| 8 | suite('Markdown links to Hrefs', () => { |
| 9 | function getHtmlMessage(markdown: string) { |
| 10 | const output = createOutputWithErrorMessageForDisplay(markdown); |
| 11 | const { stack } = JSON.parse(new TextDecoder().decode(output!.items[0].data).toString()) as { |
| 12 | stack: string; |
| 13 | }; |
| 14 | return stack.replace('\u001b[1;31m', ''); |
| 15 | } |
| 16 | test('Markdown links to Hrefs', () => { |
| 17 | const markdown = 'This is a [link](https://www.microsoft.com)'; |
| 18 | const expected = "This is a <a href='https://www.microsoft.com'>link</a>"; |
no test coverage detected