🐛Fix bug with sending files with response stream

Also updated another dependencies and removed old version of the fastify multipart plugin
This commit is contained in:
Anton SHEPILOV
2024-05-23 22:37:55 +02:00
committed by Anton Shepilov
parent 999e3087e8
commit 2884193072
8 changed files with 67 additions and 288 deletions
@@ -22,15 +22,14 @@ describe("the Drive feature", () => {
configGetSpy = jest.spyOn(config, "get");
configHasSpy.mockImplementation((setting: string) => {
const value = jest.requireActual("config").has(setting);
return value;
return jest.requireActual("config").has(setting);
});
configGetSpy.mockImplementation((setting: string) => {
if (setting === "drive.featureUserQuota") {
return true;
}
if (setting === "drive.defaultUserQuota") {
return 2000000;
return 1000000;
}
return jest.requireActual("config").get(setting);
});