From 2db556c50e39d2b13fd24033d3b36c1508379c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 7 Oct 2026 15:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=9C=E5=93=81=E6=9E=B6?= =?UTF-8?q?=E5=B0=81=E9=9D=A2=E6=8D=A2=E7=AD=BE=E7=94=A8=E4=BE=8B=E6=9C=AA?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=8F=96=E6=B6=88=E4=BF=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - useGameDistributionMediaReadUrl 新增 AbortSignal 第四参数后,旧断言 toHaveBeenCalledWith 失配 - 断言补 expect.any(AbortSignal),与换签请求可取消的语义对齐 --- src/components/game-distribution/MyGamesPage.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/game-distribution/MyGamesPage.test.tsx b/src/components/game-distribution/MyGamesPage.test.tsx index e9502432f..c2041aaa2 100644 --- a/src/components/game-distribution/MyGamesPage.test.tsx +++ b/src/components/game-distribution/MyGamesPage.test.tsx @@ -189,6 +189,7 @@ test('作者自有作品封面走 owner 作用域换签,未发布也能预览' 'game-1', 'game-distribution/cover/mine.png', undefined, + expect.any(AbortSignal), ), ); expect(getGameDistributionMediaReadUrl).not.toHaveBeenCalled();