Add assertion for self response
We want to ensure that the self response contains the email of the created account
This commit is contained in:
parent
166a6fb44d
commit
18a159e912
|
@ -52,7 +52,8 @@ describe("Accounts", () => {
|
|||
await config.loginAsAccount(createAccountRequest)
|
||||
|
||||
// Verify self response matches account
|
||||
await config.api.accounts.self()
|
||||
const [selfRes, selfBody] = await config.api.accounts.self()
|
||||
expect(selfBody.email).toBe(email)
|
||||
|
||||
// Delete account
|
||||
await config.api.accounts.deleteCurrentAccount()
|
||||
|
|
Loading…
Reference in New Issue