8032-devToTest_2440 #3009

Merged
alexm merged 262 commits from 8032-devToTest_2440 into test 2024-09-24 09:34:49 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 2ee0c93e24 - Show all commits

View File

@ -39,7 +39,7 @@ describe('ticket setWeight()', () => {
expect(ticket.weight).toEqual(weight);
});
it('should throw an error if the user does not have enough privileges', async() => {
it('should throw an error if the user is not allocated to the same department', async() => {
ctx.req.accessToken.userId = employeeId;
try {
const ticketId = 10;
@ -47,7 +47,7 @@ describe('ticket setWeight()', () => {
await models.Ticket.setWeight(ctx, ticketId, weight, opts);
} catch (e) {
expect(e.message).toEqual('You don\'t have enough privileges');
expect(e.message).toEqual('This ticket is not allocated to your department');
}
});