mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-25 22:30:29 -04:00
Pass connectionid to registered commands from command line (#3861)
* pass connectionid to registered commands from commandline * remove blank lines * fix commandline unit test
This commit is contained in:
@@ -246,7 +246,7 @@ suite('commandLineService tests', () => {
|
||||
connectionManagementService.setup(c => c.connectIfNotConnected(TypeMoq.It.is<ConnectionProfile>(p => p.serverName === 'myserver'), 'connection', true))
|
||||
.returns(() => new Promise<string>((resolve, reject) => { resolve('unused'); }))
|
||||
.verifiable(TypeMoq.Times.once());
|
||||
commandService.setup(c => c.executeCommand('mycommand', TypeMoq.It.is<ConnectionProfile>(p => p.serverName === 'myserver')))
|
||||
commandService.setup(c => c.executeCommand('mycommand', TypeMoq.It.isAnyString()))
|
||||
.returns(() => TPromise.wrap(1))
|
||||
.verifiable(TypeMoq.Times.once());
|
||||
const configurationService = getConfigurationServiceMock(true);
|
||||
|
||||
Reference in New Issue
Block a user