From 6f7a4fc5fff8e25b6d90d60513eca50487b7edc5 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 5 Jul 2022 12:08:16 +0200 Subject: [PATCH] refactor title of test --- .../route/back/methods/route/specs/updateWorkCenter.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/route/back/methods/route/specs/updateWorkCenter.spec.js b/modules/route/back/methods/route/specs/updateWorkCenter.spec.js index a7d0f0caa..4973a3afc 100644 --- a/modules/route/back/methods/route/specs/updateWorkCenter.spec.js +++ b/modules/route/back/methods/route/specs/updateWorkCenter.spec.js @@ -3,7 +3,7 @@ const models = require('vn-loopback/server/server').models; describe('route updateWorkCenter()', () => { const routeId = 1; - it('should update the commissionWorkCenterFk from workerLabour.workCenterFK', async() => { + it('should set the commission work center if the worker has workCenter', async() => { const tx = await models.Defaulter.beginTransaction({}); try { const developerId = 9; @@ -26,7 +26,7 @@ describe('route updateWorkCenter()', () => { } }); - it('should update the commissionWorkCenterFk from defaultWorkCenterFk if workerLabour.workCenterFK is null', async() => { + it(`should set the commission work center equals default work center if the worker hasn't workCenter`, async() => { const tx = await models.Defaulter.beginTransaction({}); try { const noExistentId = 2;