2024-02-06 23:51:04 +08:00
|
|
|
import { ScriptEnvironment } from "./space_script.ts";
|
|
|
|
|
2024-07-30 21:17:34 +08:00
|
|
|
Deno.test("Space script", () => {
|
2024-02-06 23:51:04 +08:00
|
|
|
const env = new ScriptEnvironment();
|
|
|
|
env.evalScript(
|
|
|
|
`
|
|
|
|
silverbullet.registerFunction("add", (a, b) => a + b);
|
|
|
|
`,
|
|
|
|
undefined as any,
|
|
|
|
);
|
|
|
|
console.log("Env", env);
|
|
|
|
});
|