mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-17 05:11:57 +08:00
08a38f0a5e
* refactor: typing house-keeping * fix: fix parse date not accepting strict mode * refactor: use npm package * fix: address review
14 lines
376 B
TypeScript
14 lines
376 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import api from '@/api';
|
|
|
|
describe('api/radar/rules/all', () => {
|
|
it('returns radar rules payload', async () => {
|
|
const response = await api.request('/radar/rules');
|
|
expect(response.status).toBe(200);
|
|
|
|
const data = await response.json();
|
|
expect(data).toEqual(expect.any(Object));
|
|
});
|
|
});
|