Project Name - da-tf-project-1-1b0f Environment - production Service Name - market-sizing-api Build Id - 948e8567-c4ed-4f5c-ae14-16ebc8ed0f0c Executed Time - Fri Dec 19 06:07:41 UTC 2025 ------------------------------------------------ > market-sizing-api@1.0.0 nyc:test-unit > nyc mocha automation-test-cases/unit-test-case/**/*.spec.js #Cache ✔ should set a cached key ✔ should handle invalid type of key when setting a cached key ✔ should not save cache when the limit is reached ✔ should get multiple cached keys at once ✔ should remove keys ✔ should handle invalid type of keys when removing keys ✔ should get a cached key and remove it from the cache ✔ should check if a key is cached ✔ should check if a key is cached ✔ should get cache statistics ✔ should flush the whole cache and reset the stats ✔ should test ✔ should set multiple cached keys at once #AccountConfig #filters ✔ #employeeSizes ✔ #employeeSizes When Value Is Not Array ✔ #revenueSizes ✔ #revenueSizes When Value In Not Array #CustomerFitAnalysisConfig #filters ✔ #name ✔ #nameEq ✔ #userId ✔ #tamFilterId ✔ #userRequestId #validate Should Validate The CustomerFitAnalysis ✔ Validating The CustomerFitAnalysis #validateNonEmptyFields Throws Error ✔ Because Name must be specified #EmployeeSizeConfig #filters ✔ #value ✔ #id ✔ #valueEq #validate Should Validate The EmployeeSize ✔ Validating The EmployeeSize #FileConfig #filters ✔ #createdBy ✔ #userId ✔ #name ✔ #nameEq ✔ #type ✔ #job.type ✔ #cloneYourCustomer.id ✔ #cloneYourCustomer.id with null #validate Should Validate The File ✔ Validating The File #validateNonEmptyFields Should validate Non Empty Fields ✔ validating Non Empty Fields Throws Error ✔ Because Name must be specified #validateFileType Throws Error ✔ Because The file type specified is invalid #validateFileFormat Throws Error ✔ Because The file format specified is invalid #validateSize Throws Error ✔ Because File size must be specified #validateColumnMapping Throws Error ✔ Because Column mappings must be specified ✔ Because Invalid column mappings specified ✔ Because Column mapping object should contain companyName and domain fields GlobalAppSettingConfig global-app-settings-config validate Check if all field are valid or not ✔ should not throw any error when all fields are valid getting error while validating ✔ should throw BadRequest when createdBy is not a valid UUID ✔ should throw BadRequest when updatedBy is not a valid UUID ✔ should throw BadRequest when key is not a non-empty string ✔ should throw BadRequest when value is undefined or null _validateKey check is key is valid or not ✔ should not throw any error when key is a non-empty string getting error while validating key ✔ should throw BadRequest when key is not a non-empty string filters checking for filter ✔ should return a Sequelize where clause with the lowercased key getting error while checking for filter ✔ should throw an error when key length is more than 100 characters IndustryConfig validate check if fields are valid or not ✔ should not throw any error when all fields are valid getting error while validation ✔ should throw an error when createdBy is not a valid UUID ✔ should throw an error when updatedBy is not a valid UUID ✔ should throw an error when name length is not between 2 and 255 characters ✔ should throw an error when industry length is not between 2 and 255 characters filters check if filter is valid or not ✔ should return a Sequelize where clause with the lowercased subIndustry ✔ should return a Sequelize where clause with the id ✔ should return a Sequelize where clause with the lowercased subIndustries when input is a string ✔ should return a Sequelize where clause with the lowercased subIndustries when input is an array ✔ should return a Sequelize where clause with the lowercased industries when input is a string ✔ should return a Sequelize where clause with the lowercased industries when input is an array ✔ should return a Sequelize where clause with the lowercased subIndustryEq getting error while checking filter ✔ should throw an error when subIndustry length is more than 100 characters ✔ should throw an error when id is not a valid UUID ✔ should throw an error when subIndustryEq length is more than 100 characters #JobConfig #filters ✔ #status ✔ #type #validate Should Validate The Job ✔ Validating The Job #_validateType Throws Error ✔ Because The job type specified is invalid. The valid values for job type are JOB_TYPE ✔ Because Type is Empty #_validateStatus Throws Error ✔ Because The job status specified is invalid. The valid values for job status are JOB_STATUS ✔ Because status is Empty LoginSessionConfig constructor ✔ should initialize the correct properties filters ✔ should return the correct where clause for id validateLoginSession checking login session is valid or not ✔ should return the correct where clause for userId ✔ should return the correct where clause for loginFrom ✔ should return the correct where clause for loginTo ✔ should return the correct where clause for logoutFrom ✔ should not throw any error when userId is a valid UUID ✔ should return the correct where clause for logoutTo getting error while validating login session ✔ should throw an error when userId is not a valid UUID ✔ should throw an error when userId is not a valid UUID #RequestStatsConfig #filters ✔ #industries ✔ #subIndustries ✔ #employeeSizes ✔ #employeeSizesComma ✔ #revenueSizes #RoleConfig #filters ✔ #name ✔ #id ✔ #nameEq SamFilterConfig validate ✔ should validate samFilter constructor ✔ should initialize fieldMapping, model, modelName, tableName, columnMapping, associations, and filters filters ✔ should validate and return the correct filters validate ✔ should throw BadRequest if name is not a string ✔ should throw BadRequest if name length is not valid ✔ should validate other filters ✔ should throw Error if other filters have more than 20 values ✔ should validate UUIDs if they exist ✔ should throw BadRequest if businessType, fundingType, locations, or targetRegions are not arrays ✔ should throw BadRequest if no valid data is provided ✔ should not throw BadRequest if at least one valid field is provided _validateAtleastOneValueExist ✔ should throw BadRequest if no valid data is provided ✔ should not throw BadRequest if at least one valid field is provided _validateAtleastOneValueExist ✔ should throw an error if no fields have data _validateName ✔ should validate the name _validateUuidIfExist ✔ should validate the UUID if it exists _validateArray ✔ should validate the array _validateOtherFilters ✔ should validate the otherFilters object filters ✔ should validate and return the correct filters _validateUuidIfExist ✔ should validate the UUID if it exists _validateArray ✔ should validate the array _validateOtherFilters ✔ should validate the otherFilters object _validateAtleastOneValueExist ✔ should throw an error if no fields have data AccountConfig constructor ✔ should initialize fieldMapping, model, modelName, tableName, columnMapping, and filters filters ✔ should validate and return the correct filters SharedDashboardConfig constructor ✔ should initialize fieldMapping, model, modelName, tableName, columnMapping, associations, and filters filters ✔ should validate and return the correct filters filters validation ✔ should throw BadRequest if invalid UUID is provided ✔ should not throw BadRequest if valid UUID is provided associations ✔ should have the correct associations defined SupportRequestConfig Constructor ✔ should initialize correctly Filters ✔ should return correct filter for id validate ✔ should validate userId if present ✔ should throw error if userId is invalid ✔ should validate fullName if present ✔ should throw error if fullName is invalid ✔ should validate email if present ✔ should throw error if email is invalid _validateName ✔ should not throw error for valid name ✔ should throw error for empty name _isValidEmail ✔ should not throw error for valid email ✔ should throw error for invalid email filters ✔ should validate id ✔ should validate userId ✔ should validate emailEq ✔ should validate email ✔ should validate contactNumber ✔ should validate contactNumberEq ✔ should validate fullName ✔ should validate fullNameEq ✔ should validate from ✔ should validate to #TamFilterConfig #filters ✔ should return a filter for name ✔ should return a filter for id ✔ should return a filter for userId ✔ should return a filter for nameEq #validate Should Validate A TAM Filter ✔ Validation Of The TAM Filter Is In Progress ✔ Validation Of The TAM Filter Is In Progress When annualContractValue Is Not Given Should Not Validate A TAM Filter ✔ Because throw an error if industries has duplicate values ✔ Because throw an error if subIndustries has duplicate values ✔ Because throw an error if revenueSizes has duplicate values ✔ Because throw an error if employeeSizes has duplicate values #validateString Should Validate A String ✔ Validation Of The String Is In Progress Should Not Validate A String ✔ Because string length is less than 2 #validateUuid Should Validate A UUID ✔ Validation Of The UUID Is In Progress Should Not Validate A UUID ✔ Because id is not a non empty string #validateOptionalUuid Should Validate An Optional UUID ✔ Validation Of The Optional UUID Is In Progress Should Not Validate An Optional UUID ✔ Because id is not a non empty string #validateArr Should Validate An Array ✔ Validation Of The Array Is In Progress Should Not Validate An Array ✔ Validating Array ✔ Because Arr is not an array ✔ Because Arr is an empty array #validateOptionalArr Should Validate An Optional Array ✔ Validation Of The Optional Array Is In Progress Should Not Validate An Optional Array ✔ Because Arr is null ✔ Because Arr is not an array ✔ Because Arr is an empty array #validateNumber Should Validate A Number ✔ Validation Of The Number Is In Progress Should Not Validate A Number ✔ Because Val is not a number ✔ Because Val is less than 0 ✔ Because Val is greater than 2147483647 #validateBigInt Should Validate A BigInt ✔ Validation Of The BigInt Is In Progress Should Not Validate A BigInt ✔ Because Val is not a BigInt ✔ Because Val is less than 0 #hasDuplicates Should Check For Duplicates ✔ Check For Duplicates Is In Progress Should Detect Duplicates ✔ Because return true if there are duplicates ✔ Because return false if there are no duplicates #validateDateIfExist Should Validate A Date If It Exists ✔ Validation Of The Date Is In Progress Should Not Validate A Date If It Does Not Exist ✔ Because Val is not a date ✔ Because Val is not a valid date #validateOptionalNumber Should Validate An Optional Number ✔ Validation Of The Optional Number Is In Progress Should Not Validate An Optional Number ✔ Beacause Val is null ✔ Beacause Val is not a number ✔ Beacause Val is less than 0 #UserConfig #filters ✔ #id ✔ #userId ✔ #userIdNe ✔ #firstName ✔ #lastName ✔ #email ✔ #email ✔ #emailLike ✔ #companyName ✔ #companyNameLike ✔ #emailDomain ✔ #emailDomainLike ✔ #jobLevel ✔ #jobDepartment ✔ #jobTitle ✔ #isBlocked ✔ #userAccess ✔ #roleId ✔ #fromDate ✔ #toDate ✔ #signUpInitiated ✔ #signUpCompleted ✔ #logInCompleted #validate Should Validate The User ✔ Validating The User Should Not Validate The User ✔ because company name must be specified #_validateName Throws Error ✔ Because First Name must be specified ✔ Because First Name length is Zero ✔ Because First Name must have only characters. #_validateEmail Throws Error ✔ Because Invalid email specified #_validateUrl Throws Error ✔ Because Invalid url specified #UserRequestConfig #filters ✔ #id ✔ #userId ✔ #jobId ✔ #assignedBy ✔ #assignedTo ✔ #status ✔ #type ✔ #actionStage ✔ #companyName ✔ #jobLevel ✔ #domain ✔ #userAccess ✔ #userAccess Should throw Error ✔ #fromDate ✔ #toDate #validate Should Validate The UserRequest ✔ Validating The UserRequest #_validateType Throws Error ✔ Because The type specified is invalid. The valid values for type are USER_REQ_TYPE #_validateStatus Throws Error ✔ Because The status specified is invalid. The valid values for status are USER_REQ_STATUS #_validateActionStage Throws Error ✔ Because The action stage specified is invalid. The valid values for action stage are USER_REQ_ACTION_STAGE #association #preloadAssociations ✔ should return an empty object when associations is falsy ✔ should convert a single association to an array and return an object with include property #db-validation #validateResourceExistence ✔ should throw NotFound error if the resource does not exist #isFieldUnique ✔ should throw an error if columnName is not a valid string ✔ should handle case-insensitive uniqueness check for strings ✔ should handle case-insensitive uniqueness check for non-strings ✔ should return false if the field is not unique #transaction #startTransaction ✔ should call sequelize.transaction() from marketSizingDb when useDb is not specified ✔ should call sequelize.transaction() from marketSizingDb when useDb is specified as marketSizingDb ✔ should call sequelize.transaction() from masterDb when useDb is specified as masterDb ✔ should call sequelize.transaction() from marketSizingDb when useDb is falsy but not masterDb or marketSizingDb #Array #hasDuplicateValues when duplicate values are found ✔ should throw BadRequest error when no duplicate values are found ✔ should not throw BadRequest error convertStringArrayToLowecase Should Convert String Array To Lowecase ✔ Converting String array To Lower Case Should Not Convert String Array To Lowecase ✔ Because Array provided is not valid #deleteValuesIfExist when array provided is not valid ✔ should throw BadRequest error when values provided is not valid ✔ should throw BadRequest error when values exist in the array ✔ should delete the values from the array when values do not exist in the array ✔ should keep the array unchanged #Auth0 #changePassword Should Change The Password ✔ Changing The Password Should Not Change The Password ✔ Because Post Function Of Axios Throws Error #verifyUserAuth Should Verify User Authentication ✔ Verifing User Authentication Successfully Should Handle Error in User Authentication Verification { response: { data: { error_description: 'Authentication error occurred' } } } ✔ Should Handle Error in User Authentication Verification Utils/date isValidDate Checking is date is valid or not ✔ should not throw an error for a valid date Getting error while validating date ✔ should throw a BadRequest error for an invalid date #createSignedURL - Testing signed url Check if signed url is being fetched ✔ should return signed url ✔ should throw error Utils/hash generateHash checking whether generating hash or not ✔ should generate a hash for a given object Utils/Number isPositiveInteger check if integer is positive or not ✔ should return true for positive integers ✔ should return false for negative integers ✔ should return false for non-integers getUniqueNumber check if getting unique number or not ✔ should return the current timestamp Utils/object deepFreeze checking if object is deepfreeze or not ✔ should freeze the object deeply sortArraysInObject checking if array is sort in object or not ✔ should sort arrays in the object #permission #checkPermission - check permissions check if returns true ✔ should return true if a prefixed permission is present in the permissions array ✔ should return true if a prefixed permission is fully present in the permissions array check if returns false ✔ should return false if the permission is not present in the permissions array ✔ should return false if a prefixed permission is partially present in the permissions array ✔ should return false if the permissions array is empty ✔ should return false if the permission is empty #request #parseLimitAndOffset - parsing limit and offset check if returns limit and offset successfully ✔ should return limit and offset ✔ should return nothing ✔ should return limit and offset check if errors are thrown ✔ should throw Limit should be a valid positive integer ✔ should throw Page should be a valid positive integer #unmarshalBody - check if body is empty check if the body is empty successfully ✔ should return non-empty body check if errors are thrown ✔ should throw Request body cannot be empty #parseFilterQueries - parsing filter queries check if returns queryparams successfully ✔ should return the existing where object if queryParams is falsy ✔ should correctly parse and apply OR conditions when orFields are present in queryParams ✔ should correctly parse and apply AND conditions when no orFields are present in queryParams ✔ should not apply filters for fields that are already processed in OR conditions #parseSelectFields Check if array is returned successfully ✔ should return an array of allowed fields if they are present in queryParams["fields"] ✔ should return an array with a single allowed field if queryParams["fields"] contains only one allowed field ✔ should return an array with multiple allowed fields if queryParams["fields"] contains multiple allowed fields Check if undefined is returned successfully ✔ should return undefined if queryParams["fields"] is falsy ✔ should return undefined if queryParams["fields"] is an empty string ✔ should return undefined if none of the fields in queryParams["fields"] are allowed setXTotalCountHeader - to set x-total-count header check if X-Total-Count is set successfully ✔ should set the X-Total-Count header with the provided count setUseDbCookie - to set use db cookie check if useDbcookie is set successfully ✔ should not set the cookie if useDb is not MASTER or STATIC ✔ should set the cookie with the correct options if useDb is MASTER or STATIC #string #isEmptyString - check if is an empty string check if returns true successfully ✔ should return true for an empty string ✔ should return true for null input ✔ should return true for a string containing only whitespace characters check if returns false successfully ✔ should return false for a non-empty string #trimSpaceFromObject - trim spaces from object check if trimming space from object Successfully ✔ should trim spaces from the specified fields in the object ✔ should handle non-array fieldArray by converting it to an array check if errors are handeled ✔ should not modify the object if it is falsy ✔ should not modify the object if fieldArray is falsy ✔ should throw an error if a field value is not a string #isNonEmptyString - check if not an empty string check if true is returned successfully ✔ should return true for a non-empty string check if false is returned successfully ✔ should return false for an empty string ✔ should return false for a non-string input #removeExtraSpaces - removes extra whitespace check if removes whitespace successfully ✔ should remove extra spaces from a string #validateStringLength - validate the string length check if not throws error successfully ✔ should not throw an error for an empty string check if throws error successfully ✔ should throw entity should consist of minLength-maxLength characters ✔ should throw entityName should have atleast minLength characters ✔ should throw entityName cannot have more than maxLength characters #replaceAndWithAmpersand - replace with ampersand ✔ should replace "and" with "&" in lowercase string ✔ should handle undefined input Utils/time isDateValidAndInPast check is date valid and in past or not ✔ should return false if date is not valid ✔ should return false if date is not in the past ✔ should return true if date is valid and in the past ✔ should delay for specified milliseconds Utils/user-request-stats isMaxFilterReached check is max filter reached or not ✔ should return true if untilDate