3638-export_database #899

Merged
joan merged 17 commits from 3638-export_database into dev 2022-03-23 10:43:17 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 30763e5c08 - Show all commits

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