test(fase1-s3): retarget source-reading asserts to split s3/ modules
PUT streaming assert now reads s3/s3-object-write.ts and UploadPart assert reads s3/s3-multipart-handlers.ts (s3-controller.ts is a thin facade since the split). No behavior change.
This commit is contained in:
@@ -144,7 +144,9 @@ describe('S3 Streaming Upload Safety', () => {
|
|||||||
* by checking the module source code.
|
* by checking the module source code.
|
||||||
*/
|
*/
|
||||||
it('uses streaming instead of req.arrayBuffer() for PUT body', async () => {
|
it('uses streaming instead of req.arrayBuffer() for PUT body', async () => {
|
||||||
const source = await Bun.file('src/interfaces/http/controllers/s3-controller.ts').text();
|
// PUT handler lives in s3-object-write.ts since the Fase 1 split
|
||||||
|
// (s3-controller.ts is now a thin facade re-exporting the router).
|
||||||
|
const source = await Bun.file('src/interfaces/http/controllers/s3/s3-object-write.ts').text();
|
||||||
|
|
||||||
const codeLines = source.split('\n').filter((l) => !l.trim().startsWith('*'));
|
const codeLines = source.split('\n').filter((l) => !l.trim().startsWith('*'));
|
||||||
const codeText = codeLines.join('\n');
|
const codeText = codeLines.join('\n');
|
||||||
@@ -170,7 +172,10 @@ describe('S3 UploadPart Streaming', () => {
|
|||||||
* req.arrayBuffer().
|
* req.arrayBuffer().
|
||||||
*/
|
*/
|
||||||
it('streams part body instead of req.arrayBuffer()', async () => {
|
it('streams part body instead of req.arrayBuffer()', async () => {
|
||||||
const source = await Bun.file('src/interfaces/http/controllers/s3-controller.ts').text();
|
// UploadPart handler lives in s3-multipart-handlers.ts since the Fase 1 split.
|
||||||
|
const source = await Bun.file(
|
||||||
|
'src/interfaces/http/controllers/s3/s3-multipart-handlers.ts',
|
||||||
|
).text();
|
||||||
|
|
||||||
// Find the handleUploadPart function
|
// Find the handleUploadPart function
|
||||||
const uploadPartSection =
|
const uploadPartSection =
|
||||||
|
|||||||
Reference in New Issue
Block a user