File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ const OCK = {
99 contributors : {
1010 github : {
1111 archive : async function ( owner , options ) {
12- contributorsLib . archiveContributorsLeaderboard ( owner , options )
13- }
14- }
12+ return contributorsLib . archiveContributorsLeaderboard ( owner , options )
13+ } ,
14+ } ,
1515 }
1616}
1717
Original file line number Diff line number Diff line change @@ -12,11 +12,10 @@ describe('index.js', function() {
1212 describe ( '#OCK.contributors.github.archive(REPO_OWNER, options);' , async function ( ) {
1313 it ( 'should start the task of archiving contributors for REPO_OWNER' , async function ( ) {
1414 this . timeout ( 100000 ) ;
15- let contributorsHandlesString = await OCK . contributors . github . archive ( contributorsFixture . VALID_REPO_OWNER ) ;
16- assert . isNotNull ( contributorsHandlesString ) ;
17- expect ( contributorsHandlesString ) . to . be . not . empty ;
18- expect ( contributorsHandlesString ) . to . include ( '@' ) ;
19- // expect(str).to.include(',');
15+ let contributorsHandlesArray = await OCK . contributors . github . archive ( contributorsFixture . VALID_REPO_OWNER ) ;
16+ assert . isNotNull ( contributorsHandlesArray , "No contributors github handles returned" ) ;
17+ expect ( contributorsHandlesArray ) . to . be . an ( 'array' ) ;
18+ expect ( contributorsHandlesArray ) . to . have . lengthOf . at . least ( contributorsFixture . ALL_REPO_CONTRIBUTOR_COUNT ) ;
2019 } )
2120 } )
2221
You can’t perform that action at this time.
0 commit comments