test: improve coverage on affine api (#1727)

This commit is contained in:
Himself65 authored and GitHub committed 2023-03-28 12:42:40 -05:00
1 parent 751ad9716f
commit dbbc05e5f0
7 files changed
+119 -48

No files matched your search

+5 -1
View File
@@ -80,7 +80,11 @@ export const AffinePlugin: WorkspacePlugin<WorkspaceFlavour.AFFINE> = {
const url = await blobs.get(id);
if (url) {
const blob = await fetch(url).then(res => res.blob());
await affineApis.uploadBlob(newWorkspaceId, blob);
await affineApis.uploadBlob(
newWorkspaceId,
await blob.arrayBuffer(),
blob.type
);
}
}
}