mirror of
https://github.com/EKKOLearnAI/hermes-web-ui.git
synced 2026-05-26 05:50:18 +00:00
d13423b9dd
Co-authored-by: KK <kk@KKs-Mac-Studio.local>
17 lines
486 B
TypeScript
17 lines
486 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { getListenHost } from '../../packages/server/src/config'
|
|
|
|
describe('server config', () => {
|
|
it('does not force an IPv4 bind host by default', () => {
|
|
expect(getListenHost({})).toBeUndefined()
|
|
})
|
|
|
|
it('uses BIND_HOST when provided', () => {
|
|
expect(getListenHost({ BIND_HOST: ' :: ' })).toBe('::')
|
|
})
|
|
|
|
it('ignores blank BIND_HOST values', () => {
|
|
expect(getListenHost({ BIND_HOST: ' ' })).toBeUndefined()
|
|
})
|
|
})
|