mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 01:25:38 -05:00
Merge from vscode 2e5312cd61ff99c570299ecc122c52584265eda2
This commit is contained in:
committed by
Anthony Dresser
parent
3603f55d97
commit
7f1d8fc32f
@@ -12,6 +12,7 @@ export class MockExtensionContext implements vscode.ExtensionContext {
|
||||
workspaceState: vscode.Memento;
|
||||
globalState: vscode.Memento;
|
||||
extensionPath: string;
|
||||
extensionUri: vscode.Uri;
|
||||
asAbsolutePath(relativePath: string): string {
|
||||
return relativePath;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ describe('Manage Package Dialog', () => {
|
||||
displayName: 'dl2',
|
||||
name: 'nl2'
|
||||
};
|
||||
testContext.onClick.fire();
|
||||
testContext.onClick.fire(undefined);
|
||||
testContext.dialog.verify(x => x.changeLocation('nl2'), TypeMoq.Times.once());
|
||||
testContext.dialog.verify(x => x.resetPages(), TypeMoq.Times.once());
|
||||
|
||||
@@ -100,7 +100,7 @@ describe('Manage Package Dialog', () => {
|
||||
displayName: 'dl2',
|
||||
name: 'nl2'
|
||||
};
|
||||
testContext.onClick.fire();
|
||||
testContext.onClick.fire(undefined);
|
||||
testContext.dialog.verify(x => x.changeLocation('nl2'), TypeMoq.Times.once());
|
||||
testContext.dialog.verify(x => x.showErrorMessage(TypeMoq.It.isAny()), TypeMoq.Times.once());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user