mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-24 05:43:58 +00:00
Major additions: - Complete Next.js studio application with 1600+ components - Docker support (Dockerfile.combined, docker-compose.yml) - GCP deployment documentation and benchmarks - SQL benchmark scripts for performance testing - Sentry integration for monitoring - Comprehensive test suite and mocks Studio features: - Dashboard and admin interfaces - Data visualization components - Authentication and user management - API integration with RuVector backend - Static data and public assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
758 B
TypeScript
24 lines
758 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { getHttpStatusCodeInfo } from './http-status-codes'
|
|
|
|
describe('getHttpStatusCodeInfo', () => {
|
|
it('should return the correct status code info', () => {
|
|
const statusCodeInfo = getHttpStatusCodeInfo(400)
|
|
expect(statusCodeInfo).toEqual({
|
|
code: 400,
|
|
name: 'BAD_REQUEST',
|
|
message: 'The server cannot or will not process the request due to an apparent client error.',
|
|
label: 'Bad Request',
|
|
})
|
|
})
|
|
|
|
it('should return unknown for an unknown status code', () => {
|
|
const statusCodeInfo = getHttpStatusCodeInfo(999)
|
|
expect(statusCodeInfo).toEqual({
|
|
code: 999,
|
|
name: 'UNKNOWN',
|
|
message: 'Unknown status code',
|
|
label: 'Unknown',
|
|
})
|
|
})
|
|
})
|