@@ -26,6 +26,7 @@ describe('Jenkins', () => {
2626 const { parameter } = JSON . parse ( value ) ;
2727 const expectedParameters = {
2828 CERTIFY_SAFE : 'on' ,
29+ COMMIT_SHA_CHECK : 'deadbeef' ,
2930 TARGET_GITHUB_ORG : owner ,
3031 TARGET_REPO_NAME : repo ,
3132 PR_ID : prid ,
@@ -91,7 +92,7 @@ describe('Jenkins', () => {
9192 json : sinon . stub ( ) . withArgs ( CI_CRUMB_URL )
9293 . returns ( Promise . resolve ( { crumb } ) )
9394 } ;
94- const jobRunner = new RunPRJob ( cli , request , owner , repo , prid , true ) ;
95+ const jobRunner = new RunPRJob ( cli , request , owner , repo , prid , 'deadbeef' ) ;
9596 assert . ok ( await jobRunner . start ( ) ) ;
9697 } ) ;
9798
@@ -124,8 +125,8 @@ describe('Jenkins', () => {
124125 } safe`, async ( ) => {
125126 const cli = new TestCLI ( ) ;
126127
127- sinon . replace ( PRChecker . prototype , 'checkCommitsAfterReview ' ,
128- sinon . fake . returns ( Promise . resolve ( certifySafe ) ) ) ;
128+ sinon . replace ( PRChecker . prototype , 'getApprovedTipOfHead ' ,
129+ sinon . fake . returns ( certifySafe && 'deadbeef' ) ) ;
129130
130131 const request = {
131132 gql : sinon . stub ( ) . returns ( {
0 commit comments