Updating test - performs signup and deletion flow
Including two more steps within this test. - Verify the self response is unauthorized - Verify the self response matches the account This will cover the '/api/auth/self' endpoint
This commit is contained in:
parent
c18324c879
commit
3c3dd9c95a
|
@ -45,9 +45,15 @@ describe("Accounts", () => {
|
||||||
// Send the verification request
|
// Send the verification request
|
||||||
await config.accountsApi.accounts.verifyAccount(code!)
|
await config.accountsApi.accounts.verifyAccount(code!)
|
||||||
|
|
||||||
|
// Verify self response is unauthorized
|
||||||
|
await config.api.accounts.self({ status: 403 })
|
||||||
|
|
||||||
// Can now log in to the account
|
// Can now log in to the account
|
||||||
await config.loginAsAccount(createAccountRequest)
|
await config.loginAsAccount(createAccountRequest)
|
||||||
|
|
||||||
|
// Verify self response matches account
|
||||||
|
await config.api.accounts.self()
|
||||||
|
|
||||||
// Delete account
|
// Delete account
|
||||||
await config.api.accounts.deleteCurrentAccount()
|
await config.api.accounts.deleteCurrentAccount()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue