test(phase22): add case service behavioural coverage
This commit is contained in:
@@ -2602,3 +2602,40 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Optional next widened slice: add a focused phase22 behavioral suite for `caseDirectService` and normalize any remaining specialized encoding usage behind explicit helper options where appropriate.
|
||||
|
||||
---
|
||||
|
||||
### CL-073: TASK22260 essential condensed slice — case phase22 behavioural coverage + encoding contract lock
|
||||
|
||||
date: 2026-03-25
|
||||
author: Cline
|
||||
scope: `tests/phase22/{case-service-behaviour,index}.test.cjs`
|
||||
type: change
|
||||
rationale: Condense remaining core work into one essential slice by adding explicit phase22 behavioural coverage for `caseDirectService` route composition and encoding-sensitive contracts.
|
||||
impact: Improves regression confidence for case service route-building behavior (BASE_URL composition, case-reference encoding/escaping, error-return contracts) without runtime behavior changes.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- Added new suite `tests/phase22/case-service-behaviour.test.cjs` with focused behavioural assertions for:
|
||||
- `getPortalModuleDetails` BASE_URL + encoded case reference composition
|
||||
- `getPortalModuleDetailsProxy` apostrophe escape behavior in case reference
|
||||
- `getAppealID` query composition and non-underscore value extraction
|
||||
- `getAppealPDFDocument` failure-path logging + `error.response` passthrough
|
||||
- Updated `tests/phase22/index.test.cjs` aggregate runner to include `case-service-behaviour` suite.
|
||||
|
||||
Validation:
|
||||
|
||||
- `node tests/phase22/index.test.cjs` -> pass
|
||||
- core-token: 2/2
|
||||
- client-utils: 6/6
|
||||
- file-client: 4/4
|
||||
- case-service: 4/4
|
||||
- phase22 combined: pass
|
||||
- `node tests/phase6/service-behaviour.test.cjs` -> pass (9/9)
|
||||
- `node tests/phase7/service-behaviour.test.cjs` -> pass (13/13)
|
||||
- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
|
||||
|
||||
Follow-ups:
|
||||
|
||||
- Optional closure slice: add a dedicated phase22 portal-service behavioural suite and finish harmonization of remaining direct query string composition in `portalDirectService` write helpers.
|
||||
|
||||
Reference in New Issue
Block a user