health-response.dto.spec.tsβ’799 B
import { describe, it, expect } from 'vitest'
import { HealthResponseDto } from './health-response.dto'
describe('HealthResponseDto', () => {
it('should create an instance with correct properties', () => {
const dto = new HealthResponseDto()
dto.status = 'ok'
dto.timestamp = '2025-10-17T18:30:45.123Z'
expect(dto.status).toBe('ok')
expect(dto.timestamp).toBe('2025-10-17T18:30:45.123Z')
})
it('should have string type for status property', () => {
const dto = new HealthResponseDto()
dto.status = 'ok'
expect(typeof dto.status).toBe('string')
})
it('should have string type for timestamp property', () => {
const dto = new HealthResponseDto()
dto.timestamp = '2025-10-17T18:30:45.123Z'
expect(typeof dto.timestamp).toBe('string')
})
})