test: fix caces

This commit is contained in:
DIYgod
2024-03-31 23:13:22 +08:00
parent f5ced001eb
commit bf4e5dd78f
6 changed files with 17 additions and 32 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import { config } from '@/config';
describe('got', () => {
it('headers', async () => {
const { data } = await got('http://rsshub.test/ua');
expect(data.ua).toBe(config.ua);
const { data } = await got('http://rsshub.test/headers');
expect(data['user-agent']).toBe(config.ua);
});
it('retry', async () => {