Skip to content

Commit

Permalink
fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Dec 6, 2024
1 parent 2899c37 commit b30535d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/meteor/tests/end-to-end/api/livechat/14-units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,11 +949,10 @@ import { IS_EE } from '../../../e2e/config/constants';
});
testDepartmentId = testDepartment._id;

// Deleting a department currently does not decrease its unit's counter. We must adjust this check when this is fixed
const updatedUnit = await getUnit(unit._id);
expect(updatedUnit).to.have.property('name', unit.name);
expect(updatedUnit).to.have.property('numMonitors', 1);
expect(updatedUnit).to.have.property('numDepartments', 3);
expect(updatedUnit).to.have.property('numDepartments', 2);

const fullDepartment = await getDepartmentById(testDepartmentId);
expect(fullDepartment).to.have.property('parentId', unit._id);
Expand Down

0 comments on commit b30535d

Please sign in to comment.