File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 4949 "joi" : " ^17.13.3" ,
5050 "screwdriver-data-schema" : " ^25.0.0" ,
5151 "screwdriver-logger" : " ^3.0.0" ,
52- "screwdriver-scm-base" : " ^10.0.0 " ,
52+ "screwdriver-scm-base" : " ^10.0.1 " ,
5353 "screwdriver-scm-github-graphql" : " ^2.0.0" ,
5454 "ssh-keygen" : " ^0.5.0"
5555 },
Original file line number Diff line number Diff line change @@ -2250,18 +2250,21 @@ jobs:
22502250 token : 'randomtoken' ,
22512251 username
22522252 } )
2253- . then (
2254- ( ) => {
2255- assert . fail ( 'This should not fail the test' ) ;
2256- } ,
2257- err => {
2258- assert . deepEqual ( err , testError ) ;
2259-
2260- assert . calledWith ( githubMock . users . getByUsername , {
2261- username
2262- } ) ;
2263- }
2264- ) ;
2253+ . then ( author => {
2254+ assert . calledWith ( githubMock . users . getByUsername , {
2255+ username
2256+ } ) ;
2257+ assert . deepEqual (
2258+ {
2259+ id : '' ,
2260+ avatar : 'https://cd.screwdriver.cd/assets/unknown_user.png' ,
2261+ name : username ,
2262+ username,
2263+ url : 'https://cd.screwdriver.cd/'
2264+ } ,
2265+ author
2266+ ) ;
2267+ } ) ;
22652268 } ) ;
22662269 } ) ;
22672270
You can’t perform that action at this time.
0 commit comments