silverbullet/common/space_script.test.ts

13 lines
273 B
TypeScript
Raw Permalink Normal View History

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