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

Update length limits #34

Merged
merged 2 commits into from
Nov 21, 2024

add exclude

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

Update length limits #34

add exclude
1bea05e
Select commit
Loading
Failed to load commit list.
GitHub Actions / JEST Tests succeeded Nov 21, 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✅ 110ms
AttachmentsService 2✅ 264ms
AuthGuard 3✅ 279ms
AuthService 14✅ 6s
CasesController 5✅ 792ms
CasesService 5✅ 6s
IncidentsController 3✅ 376ms
IncidentsService 3✅ 480ms
InPersonVisitsService 4✅ 289ms
MemosController 2✅ 314ms
MemosService 2✅ 260ms
PostInPersonVisitDto transform tests 2✅ 167ms
RequestPreparerService 14✅ 6s
ServiceRequestsController 3✅ 423ms
ServiceRequestsService 3✅ 330ms
SupportNetworkService 3✅ 300ms
TokenRefresherService 8✅ 302ms
UtilitiesService 9✅ 241ms

✅ 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