mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
test(api): 🐛 Fix S3 tests
This commit is contained in:
parent
59b069ce2c
commit
80b5184d6a
|
|
@ -60,7 +60,7 @@ describe("S3MediaDriver", () => {
|
|||
expect(mockS3Client.putObject).toHaveBeenCalledWith(
|
||||
"testhash/test.webp",
|
||||
expect.any(ReadableStream),
|
||||
{ size: file.size },
|
||||
{ size: file.size, metadata: { "Content-Type": file.type } },
|
||||
);
|
||||
expect(result).toEqual({
|
||||
uploadedFile: file,
|
||||
|
|
@ -77,7 +77,12 @@ describe("S3MediaDriver", () => {
|
|||
expect(mockS3Client.putObject).toHaveBeenCalledWith(
|
||||
expect.stringContaining("testhash"),
|
||||
expect.any(ReadableStream),
|
||||
{ size: file.size },
|
||||
{
|
||||
size: file.size,
|
||||
metadata: {
|
||||
"Content-Type": file.type,
|
||||
},
|
||||
},
|
||||
);
|
||||
expect(result).toEqual({
|
||||
uploadedFile: expect.any(Blob),
|
||||
|
|
|
|||
Loading…
Reference in a new issue