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.
This commit is contained in:
DrSmoothl committed 2026-06-20 01:37:55 +08:00
1 parent 5164ba9e39
commit b00f5ab759
1 file changed
+1 -1
+1 -1
View File
@@ -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":"<div>a</div>"}]}});',
'_preloadCallback({"code":0,"data":{"hasmore":1,"data":[{"uin":12345,"nickname":"Alice","abstime":1700000000,"appid":311,"key":"K1","html":"<div>a</div>"}]}});',
);
const out = await getQzoneFeeds(cookies, '10000', 2, 10);