mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
feat: wrong path error
This commit is contained in:
@@ -127,3 +127,11 @@ describe('allow_empty', () => {
|
||||
expect(parsed.items.length).toBe(0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('wrong_path', () => {
|
||||
it(`wrong_path`, async () => {
|
||||
const response = await request.get('/wrong');
|
||||
expect(response.status).toBe(404);
|
||||
expect(response.text).toMatch(/RSSHub 发生了一些意外: <pre>Error: wrong path/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user