mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
28 lines
594 B
TypeScript
28 lines
594 B
TypeScript
import { sdk } from "./output.sdk"
|
|
|
|
describe("setupAutoConfig", () => {
|
|
test("test", () => {
|
|
const testConfig = sdk.Config.of({
|
|
test: sdk.Value.text({
|
|
name: "testValue",
|
|
required: false,
|
|
}),
|
|
})
|
|
|
|
const testConfig2 = sdk.Config.of({
|
|
test2: sdk.Value.text({
|
|
name: "testValue2",
|
|
required: false,
|
|
}),
|
|
})
|
|
const remoteTest = sdk.AutoConfig.of({
|
|
localConfig: testConfig,
|
|
remoteConfig: testConfig2,
|
|
autoconfig: async ({}) => {},
|
|
})
|
|
sdk.setupAutoConfig(testConfig, {
|
|
remoteTest,
|
|
})
|
|
})
|
|
})
|