mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 09:35:39 -05:00
tests for KernelsDropdown class (#11476)
* add return type for a function * tests for KernelsDropdown class * remove inadvertent change * remove inadvertent change * formatting changes * pr feedback * pr feedback
This commit is contained in:
@@ -3,9 +3,13 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { getConfigurationKeys, IConfigurationOverrides, IConfigurationService, getConfigurationValue, ConfigurationTarget, IConfigurationValue } from 'vs/platform/configuration/common/configuration';
|
||||
import { Emitter } from 'vs/base/common/event';
|
||||
import { ConfigurationTarget, getConfigurationKeys, getConfigurationValue, IConfigurationChangeEvent, IConfigurationOverrides, IConfigurationService, IConfigurationValue } from 'vs/platform/configuration/common/configuration';
|
||||
|
||||
|
||||
export class TestConfigurationService implements IConfigurationService {
|
||||
public onDidChangeConfigurationEmitter = new Emitter<IConfigurationChangeEvent>();
|
||||
readonly onDidChangeConfiguration = this.onDidChangeConfigurationEmitter.event;
|
||||
public _serviceBrand: undefined;
|
||||
|
||||
private configuration: { user?: { [key: string]: any }; workspace?: { [key: string]: any } };
|
||||
@@ -42,10 +46,6 @@ export class TestConfigurationService implements IConfigurationService {
|
||||
return Promise.resolve(void 0);
|
||||
}
|
||||
|
||||
public onDidChangeConfiguration() {
|
||||
return { dispose() { } };
|
||||
}
|
||||
|
||||
public inspect<T>(key: string, overrides?: IConfigurationOverrides): IConfigurationValue<T> {
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user