From b00f5ab759418168fbf6288f03747ac52dd76e4a Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Sat, 20 Jun 2026 01:37:55 +0800 Subject: [PATCH] test(qzone): align feeds JSONP fixture to requested _preloadCallback name Cosmetic fidelity nit from re-review: the fixture used _Callback(...) while the request pins callback=_preloadCallback. Parser is name-agnostic so behavior is unchanged; this just makes the fixture mirror slice-1. --- packages/protocol/tests/web/qzone.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/protocol/tests/web/qzone.test.ts b/packages/protocol/tests/web/qzone.test.ts index 20d724a9..d1bd6d46 100644 --- a/packages/protocol/tests/web/qzone.test.ts +++ b/packages/protocol/tests/web/qzone.test.ts @@ -147,7 +147,7 @@ describe('qzone / getQzoneFeeds (HTTP layer)', () => { it('GETs the exact feeds url + params and maps the JSONP body', async () => { const spy = vi.spyOn(RequestUtil, 'HttpGetText').mockResolvedValue( - '_Callback({"code":0,"data":{"hasmore":1,"data":[{"uin":12345,"nickname":"Alice","abstime":1700000000,"appid":311,"key":"K1","html":"
a
"}]}});', + '_preloadCallback({"code":0,"data":{"hasmore":1,"data":[{"uin":12345,"nickname":"Alice","abstime":1700000000,"appid":311,"key":"K1","html":"
a
"}]}});', ); const out = await getQzoneFeeds(cookies, '10000', 2, 10);