Skip to content

Commit

Permalink
SLVSCODE-746 PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jblievremont committed Jan 10, 2025
1 parent c89f00b commit 443bc2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/suite/connections.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit 443bc2f

Please sign in to comment.