@@ -110,6 +110,7 @@ test.serial('Make multiple search queries if necessary', async t => {
110110 { hash : repeat ( 'd' , 40 ) , message : 'Commit 4 message' } ,
111111 { hash : repeat ( 'e' , 40 ) , message : 'Commit 5 message' } ,
112112 { hash : repeat ( 'f' , 40 ) , message : 'Commit 6 message' } ,
113+ { hash : repeat ( 'g' , 40 ) , message : 'Commit 6 message' } ,
113114 ] ;
114115 const nextRelease = { version : '1.0.0' } ;
115116 const releases = [ { name : 'GitHub release' , url : 'https://github.com/release' } ] ;
@@ -120,8 +121,10 @@ test.serial('Make multiple search queries if necessary', async t => {
120121 } +${ commits [ 3 ] . hash } +${ commits [ 4 ] . hash } `
121122 )
122123 . reply ( 200 , { items : [ prs [ 0 ] , prs [ 1 ] , prs [ 2 ] , prs [ 3 ] , prs [ 4 ] ] } )
123- . get ( `/search/issues?q=${ escape ( `repo:${ owner } /${ repo } ` ) } +${ escape ( 'type:pr' ) } +${ commits [ 5 ] . hash } ` )
124- . reply ( 200 , { items : [ prs [ 5 ] ] } )
124+ . get (
125+ `/search/issues?q=${ escape ( `repo:${ owner } /${ repo } ` ) } +${ escape ( 'type:pr' ) } +${ commits [ 5 ] . hash } +${ commits [ 6 ] . hash } `
126+ )
127+ . reply ( 200 , { items : [ prs [ 5 ] , prs [ 1 ] ] } )
125128 . post ( `/repos/${ owner } /${ repo } /issues/1/comments` , { body : / T h i s P R i s i n c l u d e d / } )
126129 . reply ( 200 , { html_url : 'https://github.com/successcomment-1' } )
127130 . post ( `/repos/${ owner } /${ repo } /issues/2/comments` , { body : / T h i s P R i s i n c l u d e d / } )
0 commit comments