diff options
Diffstat (limited to 'extensions')
4 files changed, 31 insertions, 30 deletions
diff --git a/extensions/html-language-features/server/src/test/rename.test.ts b/extensions/html-language-features/server/src/test/rename.test.ts index b2aa23cc016..5c3d557224c 100644 --- a/extensions/html-language-features/server/src/test/rename.test.ts +++ b/extensions/html-language-features/server/src/test/rename.test.ts @@ -18,7 +18,7 @@ async function testRename(value: string, newName: string, expectedDocContent: st folders: [{ name: 'foo', uri: 'test://foo' }] }; const languageModes = getLanguageModes({ css: true, javascript: true }, workspace, ClientCapabilities.LATEST, getNodeFileFS()); - const javascriptMode = languageModes.getMode('javascript') + const javascriptMode = languageModes.getMode('javascript'); const position = document.positionAt(offset); if (javascriptMode) { @@ -36,7 +36,7 @@ async function testRename(value: string, newName: string, expectedDocContent: st const newDocContent = TextDocument.applyEdits(document, edits); assert.strictEqual(newDocContent, expectedDocContent, `Expected: ${expectedDocContent}\nActual: ${newDocContent}`); } else { - assert.fail('should have javascriptMode but no') + assert.fail('should have javascriptMode but no'); } } @@ -50,15 +50,15 @@ async function testNoRename(value: string, newName: string): Promise<void> { folders: [{ name: 'foo', uri: 'test://foo' }] }; const languageModes = getLanguageModes({ css: true, javascript: true }, workspace, ClientCapabilities.LATEST, getNodeFileFS()); - const javascriptMode = languageModes.getMode('javascript') + const javascriptMode = languageModes.getMode('javascript'); const position = document.positionAt(offset); if (javascriptMode) { const workspaceEdit: WorkspaceEdit | null = await javascriptMode.doRename!(document, position, newName); - assert.ok(workspaceEdit?.changes === undefined, 'Should not rename but rename happened') + assert.ok(workspaceEdit?.changes === undefined, 'Should not rename but rename happened'); } else { - assert.fail('should have javascriptMode but no') + assert.fail('should have javascriptMode but no'); } } @@ -73,7 +73,7 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; const output = [ '<html>', @@ -84,10 +84,10 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; - await testRename(input.join('\n'), 'h', output.join('\n')) - }) + await testRename(input.join('\n'), 'h', output.join('\n')); + }); test('Rename Function', async () => { const input = [ @@ -102,7 +102,7 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; const output = [ '<html>', @@ -116,10 +116,10 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; - await testRename(input.join('\n'), 'sayName', output.join('\n')) - }) + await testRename(input.join('\n'), 'sayName', output.join('\n')); + }); test('Rename Function Params', async () => { const input = [ @@ -134,7 +134,7 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; const output = [ '<html>', @@ -148,10 +148,10 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; - await testRename(input.join('\n'), 'newName', output.join('\n')) - }) + await testRename(input.join('\n'), 'newName', output.join('\n')); + }); test('Rename Class', async () => { const input = [ @@ -163,7 +163,7 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; const output = [ '<html>', @@ -174,10 +174,10 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; - await testRename(input.join('\n'), 'Bar', output.join('\n')) - }) + await testRename(input.join('\n'), 'Bar', output.join('\n')); + }); test('Cannot Rename literal', async () => { const stringLiteralInput = [ @@ -188,7 +188,7 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; const numberLiteralInput = [ '<html>', '<head>', @@ -197,9 +197,9 @@ suite('HTML Javascript Rename', () => { '</script>', '</head>', '</html>' - ] + ]; - await testNoRename(stringLiteralInput.join('\n'), 'something') - await testNoRename(numberLiteralInput.join('\n'), 'hhhh') - }) + await testNoRename(stringLiteralInput.join('\n'), 'something'); + await testNoRename(numberLiteralInput.join('\n'), 'hhhh'); + }); }); diff --git a/extensions/ipynb/src/test/serializers.test.ts b/extensions/ipynb/src/test/serializers.test.ts index 49c16af97ba..26ca5b32aa9 100644 --- a/extensions/ipynb/src/test/serializers.test.ts +++ b/extensions/ipynb/src/test/serializers.test.ts @@ -633,5 +633,5 @@ suite('ipynb serializer', () => { assert.equal(mimeTypes, expectedMimeTypesOrder.join(',')); }); }); - }) + }); }); diff --git a/extensions/markdown-language-features/src/test/documentLinkProvider.test.ts b/extensions/markdown-language-features/src/test/documentLinkProvider.test.ts index d9d17e4a856..2394240a1cd 100644 --- a/extensions/markdown-language-features/src/test/documentLinkProvider.test.ts +++ b/extensions/markdown-language-features/src/test/documentLinkProvider.test.ts @@ -198,7 +198,7 @@ suite('markdown.DocumentLinkProvider', () => { '[b](https://1.com) `[b](https://2.com)', '` [b](https://3.com)'); const links = await getLinksForFile(text); - assert.deepStrictEqual(links.map(l => l.target?.authority), ['1.com', '3.com']) + assert.deepStrictEqual(links.map(l => l.target?.authority), ['1.com', '3.com']); }); test('Should not consider links in multiline inline code span with new line after the first backtick', async () => { @@ -220,5 +220,3 @@ suite('markdown.DocumentLinkProvider', () => { assert.strictEqual(links.length, 1); }); }); - - diff --git a/extensions/vscode-api-tests/src/singlefolder-tests/workspace.tasks.test.ts b/extensions/vscode-api-tests/src/singlefolder-tests/workspace.tasks.test.ts index 2e374955f69..4f47d699d4e 100644 --- a/extensions/vscode-api-tests/src/singlefolder-tests/workspace.tasks.test.ts +++ b/extensions/vscode-api-tests/src/singlefolder-tests/workspace.tasks.test.ts @@ -3,6 +3,9 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +// todo@alexr00 +/* eslint-disable no-async-promise-executor */ + import * as assert from 'assert'; import { commands, ConfigurationTarget, CustomExecution, Disposable, env, Event, EventEmitter, Pseudoterminal, ShellExecution, Task, TaskDefinition, TaskExecution, TaskProcessStartEvent, tasks, TaskScope, Terminal, UIKind, window, workspace } from 'vscode'; import { assertNoRpc } from '../utils'; |