mirror of
https://github.com/EKKOLearnAI/hermes-web-ui.git
synced 2026-05-27 14:30:18 +00:00
17 lines
472 B
TypeScript
17 lines
472 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { getListenHost } from '../../packages/server/src/config'
|
|
|
|
describe('server config', () => {
|
|
it('defaults to an IPv4 bind host', () => {
|
|
expect(getListenHost({})).toBe('0.0.0.0')
|
|
})
|
|
|
|
it('uses BIND_HOST when provided', () => {
|
|
expect(getListenHost({ BIND_HOST: ' :: ' })).toBe('::')
|
|
})
|
|
|
|
it('ignores blank BIND_HOST values', () => {
|
|
expect(getListenHost({ BIND_HOST: ' ' })).toBe('0.0.0.0')
|
|
})
|
|
})
|