mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
This reverts commit 22a427f934.
This commit is contained in:
@@ -11,7 +11,6 @@ import { MainThreadModelViewShape } from 'sql/workbench/api/common/sqlExtHost.pr
|
||||
import { IMainContext } from 'vs/workbench/api/common/extHost.protocol';
|
||||
import { IComponentShape, IItemConfig, ComponentEventType, IComponentEventArgs, ModelComponentTypes } from 'sql/workbench/api/common/sqlExtHostTypes';
|
||||
import { TitledFormItemLayout } from 'sql/workbench/browser/modelComponents/formContainer.component';
|
||||
import { assign } from 'vs/base/common/objects';
|
||||
|
||||
interface InternalItemConfig {
|
||||
toIItemConfig(): IItemConfig;
|
||||
@@ -189,7 +188,7 @@ suite('ExtHostModelView Validation Tests', () => {
|
||||
topLevelInputFormComponent,
|
||||
{
|
||||
components: [
|
||||
assign(groupInputFormComponent, { layout: groupInputLayout }),
|
||||
Object.assign(groupInputFormComponent, { layout: groupInputLayout }),
|
||||
groupDropdownFormComponent
|
||||
],
|
||||
title: groupTitle
|
||||
|
||||
@@ -9,7 +9,6 @@ import * as TypeMoq from 'typemoq';
|
||||
|
||||
import { MainThreadObjectExplorerShape } from 'sql/workbench/api/common/sqlExtHost.protocol';
|
||||
import { ExtHostObjectExplorerNode } from 'sql/workbench/api/common/extHostObjectExplorer';
|
||||
import { find } from 'vs/base/common/arrays';
|
||||
|
||||
const nodes: { [nodeName: string]: azdata.NodeInfo } =
|
||||
{
|
||||
@@ -75,7 +74,7 @@ suite('ExtHostObjectExplorer Tests', () => {
|
||||
mockProxy.setup(p =>
|
||||
p.$getNode(TypeMoq.It.isAny(), TypeMoq.It.isAny()))
|
||||
.returns((connectionId, nodePath) => {
|
||||
return Promise.resolve<azdata.NodeInfo>(nodes[find(Object.keys(nodes), key =>
|
||||
return Promise.resolve<azdata.NodeInfo>(nodes[Object.keys(nodes).find(key =>
|
||||
nodes[key].nodePath === nodePath)]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user