Skip to content

Commit a39c70b

Browse files
authored
Fix the stub to return in the expected format (#93)
1 parent 2f96e77 commit a39c70b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/reviewer.test.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,7 @@ describe('reviewer', function() {
147147
};
148148

149149
const stub = sinon.stub(github, 'get_team_members');
150-
stub.withArgs('koopa-troop').returns([
151-
{
152-
login: 'bowser',
153-
id: 1,
154-
},
155-
{
156-
login: 'king-boo',
157-
id: 2,
158-
},
159-
{
160-
login: 'goomboss',
161-
id: 3,
162-
},
163-
]);
150+
stub.withArgs('koopa-troop').returns([ 'bowser', 'king-boo', 'goomboss' ]);
164151

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

0 commit comments

Comments
 (0)