mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
Remove typings and replace missing methods with vscodes (#8217)
* remove typings and replace missing methods with vscodes * fix strict-null-checks * fix tests
This commit is contained in:
@@ -402,8 +402,8 @@ suite('Advanced options helper tests', () => {
|
||||
let optionsList = [categoryOption, booleanOption, numberOption, stringOption, defaultGroupOption];
|
||||
let optionsMap = OptionsDialogHelper.groupOptionsByCategory(optionsList);
|
||||
let categoryNames = Object.keys(optionsMap);
|
||||
assert.equal(categoryNames.includes('Initialization'), true);
|
||||
assert.equal(categoryNames.includes('General'), true);
|
||||
assert.equal(categoryNames.some(x => x === 'Initialization'), true);
|
||||
assert.equal(categoryNames.some(x => x === 'General'), true);
|
||||
assert.equal(categoryNames.length, 2);
|
||||
assert.equal(optionsMap['Initialization'].length, 4);
|
||||
assert.equal(optionsMap['General'].length, 1);
|
||||
|
||||
@@ -14,6 +14,7 @@ import { URI } from 'vs/base/common/uri';
|
||||
import { UntitledEditorInput } from 'vs/workbench/common/editor/untitledEditorInput';
|
||||
import { QueryInput } from 'sql/workbench/parts/query/common/queryInput';
|
||||
import { TestEditorService } from 'vs/workbench/test/workbenchTestServices';
|
||||
import { assign } from 'vs/base/common/objects';
|
||||
|
||||
suite('TaskUtilities', function () {
|
||||
test('getCurrentGlobalConnection returns the selected OE server if a server or one of its children is selected', () => {
|
||||
@@ -63,7 +64,7 @@ suite('TaskUtilities', function () {
|
||||
let mockConnectionManagementService = TypeMoq.Mock.ofType(TestConnectionManagementService);
|
||||
let mockWorkbenchEditorService = TypeMoq.Mock.ofType(TestEditorService);
|
||||
let oeProfile = new ConnectionProfile(undefined, connectionProfile);
|
||||
let connectionProfile2 = Object.assign({}, connectionProfile);
|
||||
let connectionProfile2 = assign({}, connectionProfile);
|
||||
connectionProfile2.serverName = 'test_server_2';
|
||||
connectionProfile2.id = 'test_id_2';
|
||||
let tabProfile = new ConnectionProfile(undefined, connectionProfile2);
|
||||
|
||||
Reference in New Issue
Block a user