Type fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = {};
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user