Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tests pass
Browse files Browse the repository at this point in the history
akshita31 committed Aug 28, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3c5e3ab commit f3c9473
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
@@ -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
11 changes: 4 additions & 7 deletions test/integrationTests/completionItemProvider.integration.test.ts
Original file line number Diff line number Diff line change
@@ -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);
});

0 comments on commit f3c9473

Please sign in to comment.