Type fixes

This commit is contained in:
2026-04-08 13:51:43 +02:00
parent 0b38b002df
commit f8de78f3ab
4 changed files with 9 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import {PublicUserData} from "./common.schema";
import {GIF} from "./userService.schema";
import {GIF, PersonalUserData} from "./userService.schema";
export interface Session {
userData: PersonalUserData

View File

@@ -11,11 +11,11 @@ export class KeyringMock implements KeyringAPI {
return this.ring[key];
}
getAll(): string[] {
return Object.keys(this.ring);
}
delete(key: string) {
delete this.ring[key];
}
flush() {
this.ring = {};
}
}

View File

@@ -4,7 +4,9 @@ import {FileUploadService} from "./fileUploadService";
describe("fileUploadService", () => {
it('should upload files', async () => {
const service = new FileUploadService("");
const uploadId = await service.uploadFiles("", "", [])
const uploadId = await service.uploadFiles("", "", [], {
fileProgressUpdate: () => {}
})
expect(uploadId).toBe("MockUploadId")
});
})