diff options
Diffstat (limited to 'client/src/test')
-rw-r--r-- | client/src/test/completion.test.ts | 2 | ||||
-rw-r--r-- | client/src/test/diagnostics.test.ts | 2 | ||||
-rw-r--r-- | client/src/test/helper.ts | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/client/src/test/completion.test.ts b/client/src/test/completion.test.ts index f355078..29786f1 100644 --- a/client/src/test/completion.test.ts +++ b/client/src/test/completion.test.ts @@ -8,7 +8,7 @@ import * as assert from 'assert'; import { getDocUri, activate } from './helper'; suite('Should do completion', () => { - const docUri = getDocUri('completion.txt'); + const docUri = getDocUri('mainTest.pl'); test('Completes JS/TS in txt file', async () => { await testCompletion(docUri, new vscode.Position(0, 0), { diff --git a/client/src/test/diagnostics.test.ts b/client/src/test/diagnostics.test.ts index 1aa8a36..9683eef 100644 --- a/client/src/test/diagnostics.test.ts +++ b/client/src/test/diagnostics.test.ts @@ -8,7 +8,7 @@ import * as assert from 'assert'; import { getDocUri, activate } from './helper'; suite('Should get diagnostics', () => { - const docUri = getDocUri('diagnostics.txt'); + const docUri = getDocUri('mainTest.pl'); test('Diagnoses uppercase texts', async () => { await testDiagnostics(docUri, [ diff --git a/client/src/test/helper.ts b/client/src/test/helper.ts index 6e6724d..b771c9b 100644 --- a/client/src/test/helper.ts +++ b/client/src/test/helper.ts @@ -12,11 +12,11 @@ export let documentEol: string; export let platformEol: string; /** - * Activates the vscode.lsp-sample extension + * Activates the bscan.perlnavigator extension */ export async function activate(docUri: vscode.Uri) { // The extensionId is `publisher.name` from package.json - const ext = vscode.extensions.getExtension('vscode-samples.lsp-sample')!; + const ext = vscode.extensions.getExtension('bscan.perlnavigator')!; await ext.activate(); try { doc = await vscode.workspace.openTextDocument(docUri); @@ -32,7 +32,7 @@ async function sleep(ms: number) { } export const getDocPath = (p: string) => { - return path.resolve(__dirname, '../../testFixture', p); + return path.resolve(__dirname, '../../../testWorkspace', p); }; export const getDocUri = (p: string) => { return vscode.Uri.file(getDocPath(p)); |