1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13: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() { async setupAccountAndTenant() {
const account = generateAccount() const account = generateAccount()
//await this.accounts.validateEmail(<string>account.email) await this.accounts.validateEmail(<string>account.email)
//await this.accounts.validateTenantId(<string>account.tenantId) await this.accounts.validateTenantId(<string>account.tenantId)
process.env.TENANT_ID = <string>account.tenantId process.env.TENANT_ID = <string>account.tenantId
await this.accounts.create(account) await this.accounts.create(account)
await this.updateApiClients(<string>account.tenantName) await this.updateApiClients(<string>account.tenantName)