From 0ddf32d58986039324da846e99552dae80eec05f Mon Sep 17 00:00:00 2001 From: Nilesh Singh Date: Mon, 26 Jun 2023 23:52:55 +0530 Subject: [PATCH] Add cli test to remove multiple scopes at once --- pkg/cmd/auth/refresh/refresh_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/cmd/auth/refresh/refresh_test.go b/pkg/cmd/auth/refresh/refresh_test.go index 59c9d490f..41d92144a 100644 --- a/pkg/cmd/auth/refresh/refresh_test.go +++ b/pkg/cmd/auth/refresh/refresh_test.go @@ -123,6 +123,14 @@ func Test_NewCmdRefresh(t *testing.T) { RemoveScopes: []string{"read:public_key"}, }, }, + { + name: "remove multiple scopes", + tty: true, + cli: "--remove-scope workflow,read:public_key", + wants: RefreshOptions{ + RemoveScopes: []string{"workflow", "read:public_key"}, + }, + }, { name: "remove scope shorthand", tty: true,