UNPKG

@agentics.org/sparc2

Version:

SPARC 2.0 - Autonomous Vector Coding Agent + MCP. SPARC 2.0, vectorized AI code analysis, is an intelligent coding agent framework built to automate and streamline software development. It combines secure execution environments, and version control into a

13 lines (11 loc) 422 B
// Verify that executeCode was called assertEquals(executeCodeSpy.calls.length, 1); assertEquals(executeCodeSpy.calls[0].args[0], "console.log('Hello')"); if (executeCodeSpy.calls[0].args[1]) { // Check if options object has language property const options = executeCodeSpy.calls[0].args[1]; assertEquals( typeof options === "object" && "language" in options ? options.language : null, "typescript", ); }