mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 17:23:45 -05:00
Merge from vscode 2e5312cd61ff99c570299ecc122c52584265eda2
This commit is contained in:
committed by
Anthony Dresser
parent
3603f55d97
commit
7f1d8fc32f
@@ -68,7 +68,8 @@ function createContext(): TestContext {
|
||||
packageJSON: '',
|
||||
extensionKind: vscode.ExtensionKind.UI,
|
||||
exports: extensionApi,
|
||||
activate: () => {return Promise.resolve();}
|
||||
activate: () => {return Promise.resolve();},
|
||||
extensionUri: vscode.Uri.parse('')
|
||||
},
|
||||
apiWrapper: TypeMoq.Mock.ofType(ApiWrapper),
|
||||
queryRunner: TypeMoq.Mock.ofType(QueryRunner),
|
||||
@@ -88,7 +89,8 @@ function createContext(): TestContext {
|
||||
asAbsolutePath: () => {return '';},
|
||||
storagePath: '',
|
||||
globalStoragePath: '',
|
||||
logPath: ''
|
||||
logPath: '',
|
||||
extensionUri: vscode.Uri.parse('')
|
||||
},
|
||||
outputChannel: {
|
||||
name: '',
|
||||
@@ -106,7 +108,8 @@ function createContext(): TestContext {
|
||||
packageJSON: {},
|
||||
extensionKind: vscode.ExtensionKind.UI,
|
||||
exports: {},
|
||||
activate: () => { return Promise.resolve(); }
|
||||
activate: () => { return Promise.resolve(); },
|
||||
extensionUri: vscode.Uri.parse('')
|
||||
},
|
||||
workspaceConfig: {
|
||||
get: () => {return 'value';},
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('Dashboard widget', () => {
|
||||
let testContext = createContext();
|
||||
const dashboard = new DashboardWidget(testContext.apiWrapper.object, '');
|
||||
dashboard.register();
|
||||
testContext.onClick.fire();
|
||||
testContext.onClick.fire(undefined);
|
||||
testContext.apiWrapper.verify(x => x.executeCommand(TypeMoq.It.isAny()), TypeMoq.Times.atLeastOnce());
|
||||
});
|
||||
});
|
||||
|
||||
@@ -111,7 +111,7 @@ describe('Add Edit External Languages Tab', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testContext.onClick.fire();
|
||||
testContext.onClick.fire(undefined);
|
||||
parent.onUpdatedLanguage(languageUpdateModel);
|
||||
await promise;
|
||||
should.equal(updateCalled, true);
|
||||
|
||||
@@ -183,7 +183,7 @@ describe('Predict Wizard', () => {
|
||||
view.modelBrowsePage.modelSourceType = ModelSourceType.RegisteredModels;
|
||||
}
|
||||
await view.refresh();
|
||||
testContext.onClick.fire();
|
||||
testContext.onClick.fire(undefined);
|
||||
|
||||
should.equal(view.modelSourcePage?.data, ModelSourceType.RegisteredModels);
|
||||
should.notEqual(view.localModelsComponent?.data, undefined);
|
||||
|
||||
Reference in New Issue
Block a user