test: improve coverage on affine api (#1727)

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

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
);
}
}
}