mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
use type config.Account in sherpa api for better typing, and update to latest sherpa lib
typescript now knows the full types, not just "any" for account config. inline structs previously in config.Account are given their own type definition so sherpa can generate types. also update to latest sherpa lib that knows about time.Duration, to be used soon.
This commit is contained in:
@ -216,11 +216,11 @@ func TestAccount(t *testing.T) {
|
||||
|
||||
api.SetPassword(ctx, "test1234")
|
||||
|
||||
fullName, _, dests, _, _ := api.Account(ctx)
|
||||
api.DestinationSave(ctx, "mjl☺@mox.example", dests["mjl☺@mox.example"], dests["mjl☺@mox.example"]) // todo: save modified value and compare it afterwards
|
||||
account, _, _ := api.Account(ctx)
|
||||
api.DestinationSave(ctx, "mjl☺@mox.example", account.Destinations["mjl☺@mox.example"], account.Destinations["mjl☺@mox.example"]) // todo: save modified value and compare it afterwards
|
||||
|
||||
api.AccountSaveFullName(ctx, fullName+" changed") // todo: check if value was changed
|
||||
api.AccountSaveFullName(ctx, fullName)
|
||||
api.AccountSaveFullName(ctx, account.FullName+" changed") // todo: check if value was changed
|
||||
api.AccountSaveFullName(ctx, account.FullName)
|
||||
|
||||
go ImportManage()
|
||||
|
||||
|
Reference in New Issue
Block a user