From 04f1a03d4dd10f327365991c04701461a4bbac93 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 29 Jan 2024 14:08:43 +0100 Subject: [PATCH] refs #6397 fix back --- .../methods/client/specs/createWithUser.spec.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/client/back/methods/client/specs/createWithUser.spec.js b/modules/client/back/methods/client/specs/createWithUser.spec.js index cab354ede..074cb289a 100644 --- a/modules/client/back/methods/client/specs/createWithUser.spec.js +++ b/modules/client/back/methods/client/specs/createWithUser.spec.js @@ -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) {