feature(jenkins-backend): improve test for standalone project

test that the client is called twice for unfiltered standalone projects.

Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
This commit is contained in:
Gabriel Testault
2022-12-14 11:29:44 +01:00
parent 9447b0fb46
commit 98ba60b8b5
@@ -81,6 +81,7 @@ describe('JenkinsApi', () => {
.mockResolvedValueOnce(project)
.mockResolvedValueOnce(project);
const result = await jenkinsApi.getProjects(jenkinsInfo);
expect(mockedJenkinsClient.job.get).toHaveBeenCalledTimes(2);
expect(result).toHaveLength(1);
expect(result[0]).toEqual({
actions: [],