Skip to content

Commit 0bece06

Browse files
fix tests
1 parent 18c9981 commit 0bece06

File tree

11 files changed

+366
-971
lines changed

11 files changed

+366
-971
lines changed

src/commands/clientCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
import { LanguageClient } from "vscode-languageclient/node";
2626

2727
import { ext } from "../extensionVariables";
28-
import { executeActiveEditorQuery } from "./executionCommands";
28+
import { executeActiveEditorQuery } from "./executionCommand";
2929
import { getTargetForUri } from "./workspaceCommand";
3030
import { ExecutionTypes } from "../models/execution";
3131
import { getBasename } from "../utils/core";

src/commands/dataSourceCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { ext } from "../extensionVariables";
1818
import {
1919
executeDataSourceQuery,
2020
handleExecuteDataQueryResults,
21-
} from "./executionCommands";
21+
} from "./executionCommand";
2222
import { LocalConnection } from "../classes/localConnection";
2323
import { GetDataError } from "../models/data";
2424
import {

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
executeActiveEditorQuery,
2828
executeReRunQuery,
2929
executeSelectViewQuery,
30-
} from "./commands/executionCommands";
30+
} from "./commands/executionCommand";
3131
import {
3232
installTools,
3333
startLocalProcess,

src/services/dataSourceEditorProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
import { ConnectionManagementService } from "./connectionManagerService";
3232
import { InsightsConnection } from "../classes/insightsConnection";
3333
import { runDataSource } from "../commands/dataSourceCommand";
34-
import { prepareToPopulateScratchpad } from "../commands/executionCommands";
34+
import { prepareToPopulateScratchpad } from "../commands/executionCommand";
3535
import {
3636
getConnectionForServer,
3737
getInsightsServers,

src/services/notebookController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { getCellKind } from "./notebookProviders";
1717
import { InsightsConnection } from "../classes/insightsConnection";
1818
import { LocalConnection } from "../classes/localConnection";
1919
import { ReplConnection } from "../classes/replConnection";
20-
import { executeNotebookQuery } from "../commands/executionCommands";
20+
import { executeNotebookQuery } from "../commands/executionCommand";
2121
import { findConnection, getServerForUri } from "../commands/workspaceCommand";
2222
import { ext } from "../extensionVariables";
2323
import { CellKind } from "../models/notebook";

test/suite/commands/clientCommand.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { LanguageClient } from "vscode-languageclient/node";
1818

1919
import * as clientCommand from "../../../src/commands/clientCommand";
2020
import * as dataSourceCommand from "../../../src/commands/dataSourceCommand";
21-
import * as workspaceCommand from "../../../src/commands/workspaceCommand";
21+
import * as executionCommand from "../../../src/commands/executionCommand";
2222
import { ext } from "../../../src/extensionVariables";
2323

2424
describe("clientCommands", () => {
@@ -50,7 +50,7 @@ describe("clientCommands", () => {
5050
sinon
5151
.stub(client, "sendRequest")
5252
.value(async () => new vscode.Range(0, 0, 1, 1));
53-
sinon.stub(workspaceCommand, "runActiveEditor").value(() => {});
53+
sinon.stub(executionCommand, "executeActiveEditorQuery").value(() => {});
5454
await executeBlock(client);
5555
assert.deepEqual(
5656
ext.activeTextEditor.selection,

0 commit comments

Comments
 (0)