Add email and tenant validation

This commit is contained in:
Pedro Silva 2023-01-09 15:35:53 +00:00
parent 9428865890
commit c090e71ae3
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ export default class TestConfiguration<T> {
async setupAccountAndTenant() {
const account = generateAccount()
//await this.accounts.validateEmail(<string>account.email)
//await this.accounts.validateTenantId(<string>account.tenantId)
await this.accounts.validateEmail(<string>account.email)
await this.accounts.validateTenantId(<string>account.tenantId)
process.env.TENANT_ID = <string>account.tenantId
await this.accounts.create(account)
await this.updateApiClients(<string>account.tenantName)