mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-24 21:50:00 +08:00
Integrated workflow list and run API to get lastSuccessRunCommit
This commit is contained in:
@@ -384,7 +384,6 @@ test("utility - getLastSuccessfulRunSha() - Get Commits under different conditio
|
||||
if (name == errorWebRequest)
|
||||
return Promise.resolve(errorWebResponse);
|
||||
});*/
|
||||
|
||||
jest.spyOn(httpClient, 'sendRequest').mockImplementation(() => Promise.resolve(lastSuccessfulRunUrlResponse));
|
||||
//Invoke and assert
|
||||
await expect(utility.getLastSuccessfulRunSha(process.env.GITHUB_TOKEN)).resolves.not.toThrowError;
|
||||
|
||||
Reference in New Issue
Block a user