From 30763e5c08e2d98d0ce1a7a23f7ce4c74e43d8b7 Mon Sep 17 00:00:00 2001 From: vicent Date: Wed, 23 Feb 2022 09:05:53 +0100 Subject: [PATCH] fix: backTest --- .../worker/back/methods/department/specs/moveChild.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/worker/back/methods/department/specs/moveChild.spec.js b/modules/worker/back/methods/department/specs/moveChild.spec.js index ca31784e8..0386ebf05 100644 --- a/modules/worker/back/methods/department/specs/moveChild.spec.js +++ b/modules/worker/back/methods/department/specs/moveChild.spec.js @@ -10,13 +10,13 @@ describe('department moveChild()', () => { it('should move a child department to a new parent', async() => { const childId = 22; - const parentId = 1; + const parentId = 37; const child = await app.models.Department.findById(childId); - expect(child.parentFk).toBeNull(); + expect(child.parentFk).toEqual(1); updatedChild = await app.models.Department.moveChild(childId, parentId); - expect(updatedChild.parentFk).toEqual(1); + expect(updatedChild.parentFk).toEqual(37); }); });