diff --git a/cmd/test/test_func.test.ts b/cmd/test/test_func.test.ts new file mode 100644 index 00000000..0d4355b8 --- /dev/null +++ b/cmd/test/test_func.test.ts @@ -0,0 +1,9 @@ +import * as YAML from "js-yaml"; + +export async function hello() { + const numbers = await syscall("addNumbers", 1, 2); + return { + yamlMessage: YAML.dump({ hello: "world" }), + addedNumbers: numbers, + }; +} diff --git a/cmd/test/test_runtime.plug.yaml b/cmd/test/test_runtime.plug.yaml index 581a3294..db3c5dca 100644 --- a/cmd/test/test_runtime.plug.yaml +++ b/cmd/test/test_runtime.plug.yaml @@ -2,7 +2,3 @@ name: test functions: boot: path: "./test_func.test.ts:hello" - endpoint: - path: "./test_func.test.ts:endpoint" - http: - path: "/"