1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-07-16 10:44:16 +02:00

changed the return result of the confirm api actions

This commit is contained in:
Gani Georgiev
2022-11-08 18:12:37 +02:00
parent bc519231d9
commit 3d14addfef
4 changed files with 18 additions and 77 deletions

View File

@ -198,15 +198,10 @@ func TestAdminConfirmPasswordReset(t *testing.T) {
"password":"1234567891",
"passwordConfirm":"1234567891"
}`),
ExpectedStatus: 200,
ExpectedContent: []string{
`"admin":{"id":"sywbhecnh46rhm0"`,
`"token":`,
},
ExpectedStatus: 204,
ExpectedEvents: map[string]int{
"OnModelBeforeUpdate": 1,
"OnModelAfterUpdate": 1,
"OnAdminAuthRequest": 1,
},
},
}