1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00

Add email and tenant validation

This commit is contained in:
Pedro Silva 2023-01-09 15:35:53 +00:00
parent 9428865890
commit c090e71ae3

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)