test: add empty item test case

This commit is contained in:
DIYgod
2019-06-13 12:01:07 +08:00
parent cbcfc03207
commit 76add4785a
4 changed files with 21 additions and 2 deletions

View File

@@ -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/);
});
});