RSSHub/test/utils
Rongrong a79cc20ec1
feat(utils): add utils for WeChat MP (#9487)
Motivation:
There are multiple routes that need to fetch articles from WeChat MP.
However, letting them fetch articles by themselves could potentially
lead to cache key collisions. Even if cache key collisions do not occur,
un-normalized URL could potentially lead to duplicated requests.
What's more, articles from WeChat MP have weird formats and need to be
fixed. Creating a universal function to do this work can create some
ease for new route contributors.

Note:
In order to make this PR atomic as much as possible, I did not touch
those broken routes. Once this PR is merged, I will try to fix them.

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-07 21:46:15 +08:00
..
common-config.js style/chore(eslint): enforce new rules (#8040) 2021-08-17 22:23:23 +08:00
common-utils.js fix(core): offending RFC4287 (#9441) 2022-04-02 17:44:45 +08:00
date.js refactor: avoid promise overhead (#8028) 2021-08-16 11:45:53 -07:00
dateParser.js chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 2020-04-02 21:21:46 +08:00
got.js style/chore(eslint): enforce new rules (#8040) 2021-08-17 22:23:23 +08:00
md5.js refactor: avoid promise overhead (#8028) 2021-08-16 11:45:53 -07:00
parse-date.js fix(utils): tests for parse-date (#9428) 2022-03-31 10:23:42 +08:00
puppeteer.js test: fix puppeteer error 2021-11-28 01:37:20 +00:00
request-wrapper.js update docs & test cases 2020-05-06 23:12:43 +08:00
rss-parser.js chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 2020-04-02 21:21:46 +08:00
wait.js test: compatible with github actions 2019-11-25 12:10:39 +08:00
wechat-mp.js feat(utils): add utils for WeChat MP (#9487) 2022-04-07 21:46:15 +08:00