feat(pkg/op): allow custom SupportedScopes
This commit is contained in:
parent
fbf009fe75
commit
1c06209f84
3 changed files with 12 additions and 2 deletions
|
@ -81,6 +81,11 @@ func Test_scopes(t *testing.T) {
|
|||
args{},
|
||||
op.DefaultSupportedScopes,
|
||||
},
|
||||
{
|
||||
"custom scopes",
|
||||
args{newTestProvider(&op.Config{SupportedScopes: []string{"test1", "test2"}})},
|
||||
[]string{"test1", "test2"},
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue