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 3c5e3ab commit f3c9473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_js:
- "8"

env:
- CODE_VERSION=1.26.1
- CODE_VERSION=1.26.0

before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
Expand Down
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 f3c9473

Please sign in to comment.