mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-27 02:41:53 +00:00
Run prettier across sdk/base and sdk/package to apply the standardized quote style (single quotes matching web).
30 lines
847 B
TypeScript
30 lines
847 B
TypeScript
import { ServiceInterfaceBuilder } from '../../../base/lib/interfaces/ServiceInterfaceBuilder'
|
|
import { Effects } from '../../../base/lib/Effects'
|
|
import { sdk } from '../test/output.sdk'
|
|
|
|
describe('host', () => {
|
|
test('Testing that the types work', () => {
|
|
async function test(effects: Effects) {
|
|
const foo = sdk.MultiHost.of(effects, 'foo')
|
|
const fooOrigin = await foo.bindPort(80, {
|
|
protocol: 'http' as const,
|
|
preferredExternalPort: 80,
|
|
})
|
|
const fooInterface = new ServiceInterfaceBuilder({
|
|
effects,
|
|
name: 'Foo',
|
|
id: 'foo',
|
|
description: 'A Foo',
|
|
type: 'ui',
|
|
username: 'bar',
|
|
path: '/baz',
|
|
query: { qux: 'yes' },
|
|
schemeOverride: null,
|
|
masked: false,
|
|
})
|
|
|
|
await fooOrigin.export([fooInterface])
|
|
}
|
|
})
|
|
})
|