| import { describe, expect, test } from 'vitest' | |
| import { get } from '@/tests/helpers/e2etest' | |
| describe('invalid headers', () => { | |
| test('400 if containing x-invoke-status (instead of redirecting)', async () => { | |
| const res = await get('/', { headers: { 'x-invoke-status': '203' } }) | |
| expect(res.statusCode).toBe(400) | |
| }) | |
| test('400 if containing x-invoke-status (instead of 200)', async () => { | |
| const res = await get('/en', { headers: { 'x-invoke-status': '203' } }) | |
| expect(res.statusCode).toBe(400) | |
| }) | |
| }) | |