File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments