feat(edit): 编辑上报细节优化

This commit is contained in:
2026-10-06 18:30:05 +08:00
parent e20cd7547f
commit 79b310efe7
92 changed files with 2764 additions and 368 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ test('任务读取原图、写入独立派生素材,并完成持久化状态',
assert.equal(outputAssetId, 'output-asset');
assert.equal(writes.length, 1);
assert.equal(writes[0].Bucket, 'test-bucket');
assert.match(writes[0].Key, /^derivatives\/workspace-id\/three-four\/[a-f0-9]{64}\.jpg$/);
assert.match(writes[0].Key, /^derivatives\/workspace-id\/three-four\/[a-f0-9]{64}\/[a-f0-9-]{36}\.jpg$/);
assert.deepEqual(await sharp(writes[0].Body).metadata().then(({ width, height }) => [width, height]), [1200, 1600]);
await runAspectRatioDerivative(database, storage, job);
assert.equal(writes.length, 1);