Skip to content

Commit 84a794a

Browse files
committed
lock and test fix
1 parent e2a4469 commit 84a794a

3 files changed

Lines changed: 1390 additions & 1437 deletions

File tree

src/backend/tests/unit/recruitment.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import RecruitmentServices from '../../src/services/recruitment.services';
44
import {
55
AccessDeniedAdminOnlyException,
66
DeletedException,
7-
HttpException,
87
NotFoundException
98
} from '../../src/utils/errors.utils';
109
import {
@@ -258,7 +257,7 @@ describe('Recruitment Tests', () => {
258257
await expect(
259258
async () =>
260259
await RecruitmentServices.deleteMilestone(await createTestUser(batmanAppAdmin, orgId), 'id1', organization)
261-
).rejects.toThrow(new HttpException(400, 'Milestone with id: id1 not found!'));
260+
).rejects.toThrow(new NotFoundException('Milestone', 'id1'));
262261
});
263262

264263
it('Fails if milestone is already deleted', async () => {

src/backend/tests/unmocked/recruitment.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import RecruitmentServices from '../../src/services/recruitment.services';
44
import {
55
AccessDeniedAdminOnlyException,
66
DeletedException,
7-
HttpException,
87
NotFoundException
98
} from '../../src/utils/errors.utils';
109
import {
@@ -258,7 +257,7 @@ describe('Recruitment Tests', () => {
258257
await expect(
259258
async () =>
260259
await RecruitmentServices.deleteMilestone(await createTestUser(batmanAppAdmin, orgId), 'id1', organization)
261-
).rejects.toThrow(new HttpException(400, 'Milestone with id: id1 not found!'));
260+
).rejects.toThrow(new NotFoundException('Milestone', 'id1'));
262261
});
263262

264263
it('Fails if milestone is already deleted', async () => {

0 commit comments

Comments
 (0)