Readding test file
parent
0ad47987f5
commit
b6848f4bbb
|
@ -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,
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,7 +2,3 @@ name: test
|
||||||
functions:
|
functions:
|
||||||
boot:
|
boot:
|
||||||
path: "./test_func.test.ts:hello"
|
path: "./test_func.test.ts:hello"
|
||||||
endpoint:
|
|
||||||
path: "./test_func.test.ts:endpoint"
|
|
||||||
http:
|
|
||||||
path: "/"
|
|
||||||
|
|
Loading…
Reference in New Issue