fix: backTest
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
591194d710
commit
30763e5c08
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue