Files
RSSHub/lib/app.test.ts
T
2024-03-03 18:57:07 +08:00

12 lines
296 B
TypeScript

import { describe, expect, it } from 'vitest';
import app from '@/app';
describe('index', () => {
it('serve index', async () => {
const res = await app.request('/');
expect(res.status).toBe(200);
expect(await res.text()).toContain('Welcome to RSSHub!');
});
});