refs #6915 test_master24_8 #2067

Merged
alexm merged 561 commits from test_master24_8 into master 2024-02-22 07:31:34 +00:00
1 changed files with 3 additions and 11 deletions
Showing only changes of commit 04f1a03d4d - Show all commits

View File

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