test(phase7): lock downloadBlob file-client delegation
This commit is contained in:
@@ -2346,3 +2346,40 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: add a focused phase6/phase7 behavioural assertion for `documentDirectService.downloadBlob` to explicitly lock the `downloadFileBlob` delegation contract.
|
||||
|
||||
---
|
||||
|
||||
### CL-067: TASK22260 next slice — phase7 downloadBlob delegation behavioural lock
|
||||
|
||||
date: 2026-03-25
|
||||
author: Cline
|
||||
scope: `tests/phase7/service-behaviour.test.cjs`
|
||||
type: change
|
||||
rationale: Execute the queued follow-up by adding explicit phase7 behavioural coverage for `documentDirectService.downloadBlob` so file-client delegation and blob request config remain contract-stable.
|
||||
impact: Increases regression confidence for document download helper behaviour after `fileClient` extraction, without runtime code changes.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- Added new phase7 behavioural test:
|
||||
- `document/downloadBlob delegates blob request config via file client helper`
|
||||
- The test asserts:
|
||||
- `downloadBlob` lower-cases container in URL composition
|
||||
- request is issued through config-style request path (`axios.request` in harness)
|
||||
- request method is `get`
|
||||
- `responseType` is `blob`
|
||||
- returned payload contract is preserved from request helper data.
|
||||
|
||||
Validation:
|
||||
|
||||
- `node tests/phase7/service-behaviour.test.cjs` -> pass (13/13)
|
||||
- `node tests/phase22/index.test.cjs` -> pass
|
||||
- core-token: 2/2
|
||||
- client-utils: 5/5
|
||||
- file-client: 3/3
|
||||
- phase22 combined: pass
|
||||
- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
|
||||
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: evaluate adding equivalent focused behavioural coverage in phase6 if download helper behavior becomes part of that suite’s scope.
|
||||
|
||||
Reference in New Issue
Block a user