mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 17:24:01 -05:00
ML- Added a radio button to enter new model table name (#10343)
This commit is contained in:
@@ -24,13 +24,6 @@ function createContext(): TestContext {
|
||||
}
|
||||
|
||||
describe('Package Management Service', () => {
|
||||
it('openDocuments should open document in browser successfully', async function (): Promise<void> {
|
||||
const context = createContext();
|
||||
context.apiWrapper.setup(x => x.openExternal(TypeMoq.It.isAny())).returns(() => Promise.resolve(true));
|
||||
let serverConfigManager = new PackageManagementService(context.apiWrapper.object, context.queryRunner.object);
|
||||
should.equal(await serverConfigManager.openDocuments(), true);
|
||||
});
|
||||
|
||||
it('isMachineLearningServiceEnabled should return true if external script is enabled', async function (): Promise<void> {
|
||||
const context = createContext();
|
||||
context.queryRunner.setup(x => x.isMachineLearningServiceEnabled(TypeMoq.It.isAny())).returns(() => Promise.resolve(true));
|
||||
|
||||
@@ -115,6 +115,10 @@ export function createViewContext(): ViewTestContext {
|
||||
onCardSelectedChanged: onClick.event
|
||||
});
|
||||
|
||||
let group: () => azdata.GroupContainer = () => Object.assign({}, componentBase, container, {
|
||||
collapsed: false,
|
||||
});
|
||||
|
||||
let declarativeTableBuilder: azdata.ComponentBuilder<azdata.DeclarativeTableComponent> = {
|
||||
component: () => declarativeTable(),
|
||||
withProperties: () => declarativeTableBuilder,
|
||||
@@ -172,6 +176,15 @@ export function createViewContext(): ViewTestContext {
|
||||
withProperties: () => cardBuilder,
|
||||
withValidation: () => cardBuilder
|
||||
};
|
||||
let groupBuilder: azdata.GroupBuilder = {
|
||||
component: () => {
|
||||
return group();
|
||||
},
|
||||
withProperties: () => groupBuilder,
|
||||
withValidation: () => groupBuilder,
|
||||
withItems: () => groupBuilder,
|
||||
withLayout: () => groupBuilder
|
||||
};
|
||||
|
||||
let imageBuilder: azdata.ComponentBuilder<azdata.ImageComponent> = {
|
||||
component: () => {
|
||||
@@ -223,7 +236,7 @@ export function createViewContext(): ViewTestContext {
|
||||
dashboardWidget: undefined!,
|
||||
dashboardWebview: undefined!,
|
||||
formContainer: () => formBuilder,
|
||||
groupContainer: undefined!,
|
||||
groupContainer: () => groupBuilder,
|
||||
toolbarContainer: undefined!,
|
||||
loadingComponent: () => loadingBuilder,
|
||||
fileBrowserTree: undefined!,
|
||||
|
||||
Reference in New Issue
Block a user