refs #6397 fix back
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-01-29 14:08:43 +01:00
parent cf03982d0c
commit 04f1a03d4d
1 changed files with 3 additions and 11 deletions

View File

@ -13,16 +13,8 @@ describe('Client Create', () => {
businessTypeFk: 'florist',
provinceFk: 1
};
const newAccount2 = {
userName: 'Deadpool',
fi: '16195279J',
name: 'Wade',
socialName: 'DEADPOOL MARVEL',
street: 'WALL STREET',
city: 'New York',
businessTypeFk: 'florist',
provinceFk: 1
};
const newAccountWithoutEmail = JSON.parse(JSON.stringify(newAccount));
delete newAccountWithoutEmail.email;
beforeAll(async() => {
const activeCtx = {
@ -64,7 +56,7 @@ describe('Client Create', () => {
let error;
try {
const options = {transaction: tx};
await models.Client.createWithUser(newAccount2, options);
await models.Client.createWithUser(newAccountWithoutEmail, options);
await tx.rollback();
} catch (e) {