Add cli test to remove multiple scopes at once
This commit is contained in:
parent
becccebae1
commit
0ddf32d589
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue