Add cli test to remove multiple scopes at once

This commit is contained in:
Nilesh Singh 2023-06-26 23:52:55 +05:30
parent becccebae1
commit 0ddf32d589

View file

@ -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,