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:
@@ -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,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user