profilecity / unstorage-s3-driver

HTTP-based S3 Driver for UnStorage (by UnJS)
MIT License
6 stars 0 forks source link

`raw support` test fails #2

Open amandesai01 opened 2 months ago

amandesai01 commented 2 months ago

raw support test fails since it doesnot expect Blob. This behaviour could be fixed by updating the test however would lead to inconsistency with other drivers.

TypeError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Blob
 ❯ Function.from node:buffer:319:9
 ❯ test/utils.ts:108:19
    106|     }
    107|     expect(rValueLen).toBe(value.length);
    108|     expect(Buffer.from(rValue).toString("base64")).toBe(
       |                   ^
    109|       Buffer.from(value).toString("base64"),
    110|     );

Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }