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:
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user