MCPcopy Create free account
hub / github.com/InsForge/InsForge / createTestFunction

Function createTestFunction

backend/tests/unit/function-security.test.ts:54–61  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

52 });
53
54 const createTestFunction = (code: string) => {
55 return service.createFunction({
56 slug: 'test-function',
57 name: 'Test Function',
58 code,
59 status: 'active',
60 });
61 };
62
63 const mockSuccessfulCreate = () => {
64 mockClient.query.mockResolvedValueOnce({});

Callers 1

Calls 1

createFunctionMethod · 0.80

Tested by

no test coverage detected