Compare commits
2 Commits
e07114b1c0
...
c8d2de9f9d
| Author | SHA1 | Date | |
|---|---|---|---|
| c8d2de9f9d | |||
| f8de78f3ab |
@@ -15,7 +15,7 @@
|
||||
"typescript": "^5.5.3",
|
||||
"vitest": "^4.1.2"
|
||||
},
|
||||
"private": true,
|
||||
"private": false,
|
||||
"dependencies": {
|
||||
"@faker-js/faker": "^10.4.0",
|
||||
"axios": "^1.14.0",
|
||||
|
||||
@@ -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