fix(web): satisfy transfer context test typing
This commit is contained in:
1 parent
9eaa5b512c
commit
53adb93ade
1 file changed
+8
-1
@@ -101,7 +101,14 @@ const {
|
|||||||
loadPersistedSourceFileMock: vi.fn(
|
loadPersistedSourceFileMock: vi.fn(
|
||||||
async (source: PersistedSourceRecord) => source.file ?? null,
|
async (source: PersistedSourceRecord) => source.file ?? null,
|
||||||
),
|
),
|
||||||
persistSourceToOpfsMock: vi.fn(async () => null),
|
persistSourceToOpfsMock: vi.fn<
|
||||||
|
(args: {
|
||||||
|
transferId: string
|
||||||
|
fileId: string
|
||||||
|
relativePath: string
|
||||||
|
file: File
|
||||||
|
}) => Promise<PersistedSourceRecord | null>
|
||||||
|
>(async () => null),
|
||||||
putSourcesMock: vi.fn(async (records: PersistedSourceRecord[]) => {
|
putSourcesMock: vi.fn(async (records: PersistedSourceRecord[]) => {
|
||||||
for (const record of records) {
|
for (const record of records) {
|
||||||
sourceMap.set(record.key, record)
|
sourceMap.set(record.key, record)
|
||||||
|
|||||||
Reference in new issue
Block a user