test: bump router test time range

fix https://github.com/DIYgod/RSSHub/actions/runs/7104681085/job/19340228876
This commit is contained in:
Tony
2023-12-06 05:56:24 +08:00
committed by GitHub
parent 7dee6a82d4
commit 88241f5cd1
+1 -1
View File
@@ -17,7 +17,7 @@ async function checkRSS(response) {
expect(date).toEqual(expect.any(String));
expect(Date.parse(date)).toEqual(expect.any(Number));
expect(new Date() - new Date(date)).toBeGreaterThan(-1000 * 60 * 60 * 24 * 5);
expect(new Date() - new Date(date)).toBeLessThan(1000 * 60 * 60 * 24 * 30 * 12 * 5);
expect(new Date() - new Date(date)).toBeLessThan(1000 * 60 * 60 * 24 * 30 * 12 * 10);
};
const parsed = await parser.parseString(response.text);