Skip to content

Commit 9eb5c02

Browse files
committed
#4148: fixed test errors
1 parent c2d1e74 commit 9eb5c02

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/backend/src/services/recruitment.services.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,19 +340,19 @@ export default class RecruitmentServices {
340340
}
341341

342342
/**
343-
* Gets a single guest defenition with the given user, organization, and definition ids
343+
* Gets a single guest definition with the given user, organization, and definition ids
344344
* @param organizationId the organization the user is currently in
345-
* @param definitionId the id of the specific defenition being found
345+
* @param definitionId the id of the specific definition being found
346346
* @returns a definition
347-
* @throws if the defenition is not found in the db
347+
* @throws if the definition is not found in the db
348348
*/
349349
static async getGuestDefinition(organizationId: string, definitionId: string): Promise<Guest_Definition> {
350350
const guest = await prisma.guest_Definition.findUnique({
351351
where: { organizationId, definitionId }
352352
});
353353

354354
if (!guest) {
355-
throw new NotFoundException('Guest Defenition', definitionId);
355+
throw new NotFoundException('Guest Definition', definitionId);
356356
}
357357

358358
return guest;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ describe('Recruitment Tests', () => {
380380
});
381381
});
382382

383-
describe('Get a single guest defenition', () => {
384-
it('Get a single team type works', async () => {
383+
describe('Get a single guest definition', () => {
384+
it('Get a single guest definition works', async () => {
385385
const guestDefinition = await RecruitmentServices.createGuestDefinition(
386386
superman,
387387
organization,
@@ -396,7 +396,7 @@ describe('Recruitment Tests', () => {
396396
expect(result).toStrictEqual(guestDefinition);
397397
});
398398

399-
it('Get a single guest defenition fails', async () => {
399+
it('Get a single guest definition fails', async () => {
400400
const nonExistingDefinitionId = 'nonExistingDefinition';
401401
await expect(async () => RecruitmentServices.getGuestDefinition(orgId, nonExistingDefinitionId)).rejects.toThrow(
402402
new NotFoundException('Guest Definition', nonExistingDefinitionId)

0 commit comments

Comments
 (0)