1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00

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

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