mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: value of rss TTL tag (#2297)
* fix value of rss TTL tag * fix test algorithm for rss ttl tag
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ async function checkRSS(response) {
|
||||
expect(parsed.description).toEqual(expect.any(String));
|
||||
expect(parsed.link).toEqual(expect.any(String));
|
||||
expect(parsed.lastBuildDate).toEqual(expect.any(String));
|
||||
expect(parsed.ttl).toEqual(config.cache.routeExpire + '');
|
||||
expect(parsed.ttl).toEqual(((config.cache.routeExpire / 60) | 0) + '');
|
||||
expect(parsed.items).toEqual(expect.any(Array));
|
||||
checkDate(parsed.lastBuildDate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user