Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log #55

Merged
merged 1 commit into from
Dec 18, 2024

log

61e755a
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

log #55

log
61e755a
Select commit
Loading
Failed to load commit list.
GitHub Actions / JEST Tests succeeded Dec 18, 2024 in 1s

106 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/jest-junit.xml

106 tests were completed in 9s with 106 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AppController 1✅ 118ms
AttachmentsService 3✅ 297ms
AuthGuard 3✅ 229ms
AuthService 14✅ 433ms
CasesController 7✅ 7s
CasesService 7✅ 7s
ContactsService 3✅ 310ms
IncidentsController 5✅ 677ms
IncidentsService 5✅ 433ms
InPersonVisitsService 4✅ 288ms
MemosController 4✅ 366ms
MemosService 4✅ 387ms
PostInPersonVisitDto transform tests 2✅ 173ms
RequestPreparerService 14✅ 6s
ServiceRequestsController 5✅ 450ms
ServiceRequestsService 5✅ 401ms
SupportNetworkService 3✅ 243ms
TokenRefresherService 8✅ 261ms
UtilitiesService 9✅ 211ms

✅ AppController

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
  ✅ 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
  ✅ 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
  ✅ should return nested values given good input
  ✅ should return nested values given good input

✅ ContactsService

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

✅ 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
  ✅ 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
  ✅ 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
  ✅ 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
  ✅ 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
  ✅ 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
  ✅ 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