Searched refs:resolveHostType (Results 1 – 2 of 2) sorted by relevance
4 import { resolveHostType, resolveOptionsAsync, resolvePortsAsync } from '../resolveOptions';58 describe(resolveHostType, () => {60 expect(resolveHostType({})).toBe('lan');63 expect(resolveHostType({ lan: true })).toBe('lan');64 expect(resolveHostType({ localhost: true })).toBe('localhost');65 expect(resolveHostType({ tunnel: true })).toBe('tunnel');66 expect(resolveHostType({ offline: true })).toBe('lan');67 expect(resolveHostType({ host: 'tunnel' })).toBe('tunnel');69 expect(resolveHostType({})).toBe('lan');72 expect(() => resolveHostType({ host: 'bacon' })).toThrow();[all …]
29 const host = resolveHostType({110 export function resolveHostType(options: { function