silverbullet/common/space_script.test.ts

13 lines
273 B
TypeScript

import { ScriptEnvironment } from "./space_script.ts";
Deno.test("Space script", () => {
const env = new ScriptEnvironment();
env.evalScript(
`
silverbullet.registerFunction("add", (a, b) => a + b);
`,
undefined as any,
);
console.log("Env", env);
});