修复作品架封面换签用例未适配取消信号
- useGameDistributionMediaReadUrl 新增 AbortSignal 第四参数后,旧断言 toHaveBeenCalledWith 失配 - 断言补 expect.any(AbortSignal),与换签请求可取消的语义对齐
This commit is contained in:
@@ -189,6 +189,7 @@ test('作者自有作品封面走 owner 作用域换签,未发布也能预览'
|
||||
'game-1',
|
||||
'game-distribution/cover/mine.png',
|
||||
undefined,
|
||||
expect.any(AbortSignal),
|
||||
),
|
||||
);
|
||||
expect(getGameDistributionMediaReadUrl).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user