mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 22:06:20 -06:00
simplify...
This commit is contained in:
parent
c8edd5f142
commit
513f4fefed
2 changed files with 11 additions and 22 deletions
|
|
@ -84,6 +84,11 @@ func TestScopes(t *testing.T) {
|
|||
WantsScope: util.ScopeWriteAccounts,
|
||||
Expect: false,
|
||||
},
|
||||
{
|
||||
HasScope: util.ScopeWriteAccounts,
|
||||
WantsScope: util.ScopeWrite,
|
||||
Expect: false,
|
||||
},
|
||||
} {
|
||||
res := test.HasScope.Permits(test.WantsScope)
|
||||
if res != test.Expect {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue