Fix forgotten use of recent API change in sonarqube-backend plugin

Signed-off-by: Neemys <36508659+Neemys@users.noreply.github.com>
This commit is contained in:
Neemys
2022-08-01 17:27:52 +02:00
parent e598739487
commit 65f3172896
2 changed files with 10 additions and 2 deletions
@@ -29,7 +29,12 @@ describe('createRouter', () => {
> = jest.fn();
const getFindingsMock: jest.Mock<
Promise<SonarqubeFindings | undefined>,
[string, string]
[
{
componentKey: string;
instanceName: string;
},
]
> = jest.fn();
beforeAll(async () => {
@@ -66,7 +66,10 @@ export async function createRouter(
);
response.json(
await sonarqubeInfoProvider.getFindings(componentKey, instanceKey),
await sonarqubeInfoProvider.getFindings({
componentKey,
instanceName: instanceKey,
}),
);
});