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:
Mitch-Budibase 2023-09-01 15:43:07 +01:00
parent 166a6fb44d
commit 18a159e912
1 changed files with 2 additions and 1 deletions

View File

@ -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()