Skip to content

Commit e14a736

Browse files
committed
Fix EOL
1 parent b7e5d89 commit e14a736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integrationTests/hover.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import * as vscode from 'vscode';
77
import * as path from 'path';
8+
import { EOL } from 'os';
89
import testAssetWorkspace from './testAssets/testAssetWorkspace';
910
import { activateCSharpExtension, closeAllEditorsAsync, openFileInWorkspaceAsync } from './integrationHelpers';
1011
import { describe, beforeAll, beforeEach, afterAll, test, expect, afterEach } from '@jest/globals';
@@ -35,8 +36,7 @@ describe(`[${testAssetWorkspace.description}] Hover Tests`, () => {
3536
)
3637
);
3738

38-
const expected =
39-
'```csharp\r\nbool testissue.Compare(int gameObject, string tagName)\r\n```\r\n \r\nA cref&nbsp;testissue \r\n**strong text** \r\n_italic text_ \r\n<u>underline text</u> \r\n \r\n•&nbsp;Item 1\\. \r\n•&nbsp;Item 2\\. \r\n \r\n[link text](https://google.com) \r\n \r\nRemarks are cool too\\. \r\n \r\nReturns: \r\n&nbsp;&nbsp;a string \r\n \r\nExceptions: \r\n&nbsp;&nbsp;NullReferenceException \r\n';
39+
const expected = `\`\`\`csharp${EOL}bool testissue.Compare(int gameObject, string tagName)${EOL}\`\`\`${EOL} ${EOL}A cref&nbsp;testissue ${EOL}**strong text** ${EOL}_italic text_ ${EOL}<u>underline text</u> ${EOL} ${EOL}•&nbsp;Item 1\\. ${EOL}•&nbsp;Item 2\\. ${EOL} ${EOL}[link text](https://google.com) ${EOL} ${EOL}Remarks are cool too\\. ${EOL} ${EOL}Returns: ${EOL}&nbsp;&nbsp;a string ${EOL} ${EOL}Exceptions: ${EOL}&nbsp;&nbsp;NullReferenceException ${EOL}`;
4040

4141
expect(hovers.length).toEqual(1);
4242
expect((hovers[0].contents[0] as vscode.MarkdownString).value).toEqual(expected);

0 commit comments

Comments
 (0)