mirror of
https://github.com/EKKOLearnAI/hermes-web-ui.git
synced 2026-07-10 02:30:15 +00:00
18 lines
636 B
TypeScript
18 lines
636 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('bootstrap body parser limits', () => {
|
|
it('allows MiMo voice-clone JSON payloads advertised by the UI/docs', () => {
|
|
const source = readFileSync('packages/server/src/index.ts', 'utf8')
|
|
|
|
expect(source).toContain("jsonLimit: '20mb'")
|
|
expect(source).toContain("formLimit: '20mb'")
|
|
})
|
|
|
|
it('parses DELETE request bodies for file operations', () => {
|
|
const source = readFileSync('packages/server/src/index.ts', 'utf8')
|
|
|
|
expect(source).toMatch(/parsedMethods:\s*\[\s*'POST',\s*'PUT',\s*'PATCH',\s*'DELETE'\s*\]/)
|
|
})
|
|
})
|