Auto-indexing service and GraphQL API for AT Protocol Records quickslice.slices.network/
atproto gleam graphql
at main 24 lines 719 B view raw
1import gleeunit/should 2import lib/oauth/scopes/parse_error 3 4pub fn invalid_scope_format_to_string_test() { 5 parse_error.InvalidScopeFormat("repo:", "missing collection") 6 |> parse_error.to_string 7 |> should.equal("Invalid scope format: 'repo:' - missing collection") 8} 9 10pub fn invalid_action_to_string_test() { 11 parse_error.InvalidAction("foo") 12 |> parse_error.to_string 13 |> should.equal( 14 "Unknown action 'foo', expected: create, update, delete, read, manage", 15 ) 16} 17 18pub fn invalid_rpc_scope_to_string_test() { 19 parse_error.InvalidRpcScope("wildcard method requires specific audience") 20 |> parse_error.to_string 21 |> should.equal( 22 "Invalid RPC scope: wildcard method requires specific audience", 23 ) 24}