From b6848f4bbbdec7d5b88e8901b48212a0e08c40d9 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 26 Jul 2024 19:16:08 +0200 Subject: [PATCH] Readding test file --- cmd/test/test_func.test.ts | 9 +++++++++ cmd/test/test_runtime.plug.yaml | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 cmd/test/test_func.test.ts 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: "/"