fix: backTest
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-02-23 09:05:53 +01:00
parent 591194d710
commit 30763e5c08
1 changed files with 3 additions and 3 deletions

View File

@ -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);
});
});