RSSHub/lib/app.test.ts

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!');
});
});