mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-11 07:40:26 +08:00
test: add empty item test case
This commit is contained in:
@@ -9,6 +9,7 @@ afterAll(() => {
|
||||
describe('error', () => {
|
||||
it(`error`, async () => {
|
||||
const response = await request.get('/test/0');
|
||||
expect(response.status).toBe(404);
|
||||
expect(response.text).toMatch(/RSSHub 发生了一些意外: <pre>Error: Error test/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user