From 443bc2f6f5a8e60d48d6660ceb424bb887569027 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Fri, 10 Jan 2025 14:17:13 +0100 Subject: [PATCH] SLVSCODE-746 PR feedback --- test/suite/connections.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/suite/connections.test.ts b/test/suite/connections.test.ts index 480d1c114..f9b0ae29a 100644 --- a/test/suite/connections.test.ts +++ b/test/suite/connections.test.ts @@ -57,24 +57,24 @@ suite('Connected Mode Test Suite', () => { }); suite('getConnections()', () => { - let underTest; + let underTest: AllConnectionsTreeDataProvider; setup(() => { underTest = new AllConnectionsTreeDataProvider(mockClient); }); test('should return same number of sonarqube settings as in config file', async () => { const connectionConfig = vscode.workspace.getConfiguration('sonarlint.connectedMode.connections'); - expect(connectionConfig.sonarqube.length).to.equal((await underTest.getConnections('sonarqube')).length); + expect(connectionConfig.sonarqube.length).to.equal((await underTest.getConnections('__sonarqube__')).length); }); test('should return no sq/sc connections when config is blank', async () => { - expect((await underTest.getConnections('sonarqube')).length).to.equal(0); - expect((await underTest.getConnections('sonarcloud')).length).to.equal(0); + expect((await underTest.getConnections('__sonarqube__')).length).to.equal(0); + expect((await underTest.getConnections('__sonarcloud__')).length).to.equal(0); }); test('should return same number of sonarcloud settings as in config file', async () => { const connectionConfig = vscode.workspace.getConfiguration('sonarlint.connectedMode.connections'); - expect(connectionConfig.sonarcloud.length).to.equal((await underTest.getConnections('sonarcloud')).length); + expect(connectionConfig.sonarcloud.length).to.equal((await underTest.getConnections('__sonarcloud__')).length); }); });