Skip to content

Commit

Permalink
fix test to expect new_name
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys authored and JakeChampion committed Jun 14, 2021
1 parent f566492 commit a53092e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/lib/github-label-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ describe('lib/github-label-api', () => {

it('should make a PATCH request to the repo labels endpoint (encoding `labelName`)', () => {
assert.calledOnce(instance.apiClient.patch);
assert.calledWith(instance.apiClient.patch, `/repos/${repo}/labels/baz%20qux`, label);
assert.calledWith(instance.apiClient.patch, `/repos/${repo}/labels/baz%20qux`, {new_name: 'foo', color: 'ff0000'});
});

describe('.then()', () => {
Expand Down

0 comments on commit a53092e

Please sign in to comment.