Skip to content

Updating files for changed upstream endpoints. #9

Updating files for changed upstream endpoints.

Updating files for changed upstream endpoints. #9

GitHub Actions / JEST Tests succeeded Nov 22, 2024 in 1s

87 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/jest-junit.xml

87 tests were completed in 8s with 87 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AppController 2✅ 127ms
AttachmentsService 2✅ 243ms
AuthGuard 3✅ 323ms
AuthService 14✅ 6s
CasesController 5✅ 814ms
CasesService 5✅ 6s
IncidentsController 3✅ 420ms
IncidentsService 3✅ 441ms
InPersonVisitsService 4✅ 362ms
MemosController 2✅ 317ms
MemosService 2✅ 263ms
PostInPersonVisitDto transform tests 2✅ 165ms
RequestPreparerService 14✅ 6s
ServiceRequestsController 3✅ 437ms
ServiceRequestsService 3✅ 397ms
SupportNetworkService 3✅ 273ms
TokenRefresherService 8✅ 254ms
UtilitiesService 9✅ 218ms

✅ AppController

should return "Hello world! This is the visitz-api."
  ✅ should return "Hello world! This is the visitz-api."
should return "This is the caseload API endpoint."
  ✅ should return "This is the caseload API endpoint."

✅ AttachmentsService

should be defined
  ✅ should be defined
should return a nested attachment entity given good inputs
  ✅ should return a nested attachment entity given good inputs

✅ AuthGuard

should be defined
  ✅ should be defined
should always return true when skipping
  ✅ should always return true when skipping
should return the result of getRecordAndValidate when not skipping
  ✅ should return the result of getRecordAndValidate when not skipping

✅ AuthService

should be defined
  ✅ should be defined
should return true with valid record
  ✅ should return true with valid record
should return false with invalid record
  ✅ should return false with invalid record
  ✅ should return false with invalid record
returns an array of [id, type] when the correct url format is passed
  ✅ returns an array of [id, type] when the correct url format is passed
throws an error when the enum doesn't match the record type
  ✅ throws an error when the enum doesn't match the record type
throws an error when the parameter doesn't exist for id
  ✅ throws an error when the parameter doesn't exist for id
should return idir string given good input
  ✅ should return idir string given good input
  ✅ should return idir string given good input
should return null when idir not in response
  ✅ should return null when idir not in response
  ✅ should return null when idir not in response
Should return null on axios error
  ✅ Should return null on axios error
  ✅ Should return null on axios error
should return null on token refresh error
  ✅ should return null on token refresh error

✅ CasesController

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ CasesService

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ IncidentsController

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ IncidentsService

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ InPersonVisitsService

should be defined
  ✅ should be defined
should return list values given good input
  ✅ should return list values given good input
  ✅ should return list values given good input
should return post values given good input
  ✅ should return post values given good input

✅ MemosController

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input

✅ MemosService

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input

✅ PostInPersonVisitDto transform tests

should transform the date when given good, past ISO-8601 input
  ✅ should transform the date when given good, past ISO-8601 input
  ✅ should transform the date when given good, past ISO-8601 input

✅ RequestPreparerService

should be defined
  ✅ should be defined
correctly prepares headers and params with no date or row number parameter
  ✅ correctly prepares headers and params with no date or row number parameter
  ✅ correctly prepares headers and params with no date or row number parameter
correctly prepares headers and params with some parameters, but not all
  ✅ correctly prepares headers and params with some parameters, but not all
  ✅ correctly prepares headers and params with some parameters, but not all
correctly prepares headers and params with all parameters filled
  ✅ correctly prepares headers and params with all parameters filled
provides a response on sucessful http service call
  ✅ provides a response on sucessful http service call
  ✅ provides a response on sucessful http service call
Should return HttpException with matching status on axios error
  ✅ Should return HttpException with matching status on axios error
  ✅ Should return HttpException with matching status on axios error
Should return HttpException with status 204 on 404 from upstream
  ✅ Should return HttpException with status 204 on 404 from upstream
  ✅ Should return HttpException with status 204 on 404 from upstream
Should return HttpException with status 500 on bearer token undefined
  ✅ Should return HttpException with status 500 on bearer token undefined
  ✅ Should return HttpException with status 500 on bearer token undefined

✅ ServiceRequestsController

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ ServiceRequestsService

should be defined
  ✅ should be defined
should return nested values given good input
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ SupportNetworkService

should be defined a
  ✅ should be defined a
should return list values given good input
  ✅ should return list values given good input
  ✅ should return list values given good input

✅ TokenRefresherService

should be defined
  ✅ should be defined
should return token on cache hit
  ✅ should return token on cache hit
should return token on cache miss with upstream success
  ✅ should return token on cache miss with upstream success
should return undefined on cache miss with upstream fail
  ✅ should return undefined on cache miss with upstream fail
should return access token and expiry on success
  ✅ should return access token and expiry on success
should return [undefined, undefined] on axios error
  ✅ should return [undefined, undefined] on axios error
should return [undefined, undefined] on generic error
  ✅ should return [undefined, undefined] on generic error
  ✅ should return [undefined, undefined] on generic error

✅ UtilitiesService

should be defined
  ✅ should be defined
should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
  ✅ should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
  ✅ should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
  ✅ should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
should return undefined on unexpected date format
  ✅ should return undefined on unexpected date format
  ✅ should return undefined on unexpected date format
should return a string upon being given a past ISO-8601 date
  ✅ should return a string upon being given a past ISO-8601 date
should throw BadRequestException on future date or unexpected input format
  ✅ should throw BadRequestException on future date or unexpected input format
  ✅ should throw BadRequestException on future date or unexpected input format