From 28deb34047e7970d2877ac251f5cfae892d0a684 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 19 Jul 2022 14:40:23 +0200 Subject: [PATCH] refactor: update translation --- .../back/methods/route/specs/updateWorkCenter.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/route/back/methods/route/specs/updateWorkCenter.spec.js b/modules/route/back/methods/route/specs/updateWorkCenter.spec.js index 4973a3afc..5328dc240 100644 --- a/modules/route/back/methods/route/specs/updateWorkCenter.spec.js +++ b/modules/route/back/methods/route/specs/updateWorkCenter.spec.js @@ -4,7 +4,7 @@ describe('route updateWorkCenter()', () => { const routeId = 1; it('should set the commission work center if the worker has workCenter', async() => { - const tx = await models.Defaulter.beginTransaction({}); + const tx = await models.Route.beginTransaction({}); try { const developerId = 9; const ctx = { @@ -26,13 +26,13 @@ describe('route updateWorkCenter()', () => { } }); - it(`should set the commission work center equals default work center if the worker hasn't workCenter`, async() => { - const tx = await models.Defaulter.beginTransaction({}); + it(`shoul set the default commision work center if that worker didn't have one yet`, async() => { + const tx = await models.Route.beginTransaction({}); try { - const noExistentId = 2; + const userWithoutWorkCenter = 2; const ctx = { req: { - accessToken: {userId: noExistentId} + accessToken: {userId: userWithoutWorkCenter} } }; const options = {transaction: tx};