Integrated workflow list and run API to get lastSuccessRunCommit

This commit is contained in:
Koushik Dey
2020-08-05 10:43:46 +05:30
parent 3919a9ee22
commit 3d1e46f18f
9 changed files with 151 additions and 63 deletions
-1
View File
@@ -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;