From a53092e793283dce3b141544fe892c3f6b8c1261 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Mon, 14 Jun 2021 10:38:35 +0100 Subject: [PATCH] fix test to expect new_name --- test/unit/lib/github-label-api.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/lib/github-label-api.test.js b/test/unit/lib/github-label-api.test.js index 03f5f26..2b196ce 100644 --- a/test/unit/lib/github-label-api.test.js +++ b/test/unit/lib/github-label-api.test.js @@ -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()', () => {