Skip to content

Commit

Permalink
Make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
akshita31 committed Aug 28, 2018
1 parent 0f7afea commit 5a16cdd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/integrationTests/completionItemProvider.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,20 @@

import OmniSharpCompletionItemProvider from "../../src/features/completionItemProvider";
import * as vscode from 'vscode';
import CSharpExtensionExports from "../../src/CSharpExtensionExports";
import testAssetWorkspace from "./testAssets/testAssetWorkspace";
import * as path from "path";
import { expect } from "chai";
import { activateCSharpExtension } from "./integrationHelpers";

suite(`${OmniSharpCompletionItemProvider.name}: Returns the completion items`, () => {
let fileUri: vscode.Uri;

suiteSetup(async () => {
let csharpExtension = vscode.extensions.getExtension<CSharpExtensionExports>("ms-vscode.csharp");
if (!csharpExtension.isActive) {
await csharpExtension.activate();
}
await testAssetWorkspace.restore();
await activateCSharpExtension();

await csharpExtension.exports.initializationFinished();
let fileName = 'completion.cs';
let dir = path.dirname(testAssetWorkspace.projects[0].projectDirectoryPath);
let dir = testAssetWorkspace.projects[0].projectDirectoryPath;
fileUri = vscode.Uri.file(path.join(dir, fileName));
await vscode.commands.executeCommand("vscode.open", fileUri);
});
Expand Down

0 comments on commit 5a16cdd

Please sign in to comment.