Skip to content

Commit

Permalink
Fix the stub to return in the expected format (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
necojackarc authored May 23, 2023
1 parent 2f96e77 commit a39c70b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/reviewer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,7 @@ describe('reviewer', function() {
};

const stub = sinon.stub(github, 'get_team_members');
stub.withArgs('koopa-troop').returns([
{
login: 'bowser',
id: 1,
},
{
login: 'king-boo',
id: 2,
},
{
login: 'goomboss',
id: 3,
},
]);
stub.withArgs('koopa-troop').returns([ 'bowser', 'king-boo', 'goomboss' ]);

it('returns nothing when config does not have a "per-author" key', function() {
const author = 'THIS DOES NOT MATTER';
Expand Down

0 comments on commit a39c70b

Please sign in to comment.