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:
tuzi3040
2019-06-04 11:02:56 +08:00
committed by DIYgod
parent 21cd347aa4
commit a04a88d2cd
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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);