MCPcopy Create free account
hub / github.com/ephraimduncan/opencode-cursor / assertArrayEqual

Function assertArrayEqual

test/smoke.ts:45–55  ·  view source on GitHub ↗
(
  actual: readonly string[],
  expected: readonly string[],
  message: string,
)

Source from the content-addressed store, hash-verified

43}
44
45function assertArrayEqual(
46 actual: readonly string[],
47 expected: readonly string[],
48 message: string,
49): void {
50 const actualJson = JSON.stringify(actual);
51 const expectedJson = JSON.stringify(expected);
52 if (actualJson !== expectedJson) {
53 throw new Error(`${message}: expected ${expectedJson}, got ${actualJson}`);
54 }
55}
56
57function makeJwt(expiresAtSeconds: number): string {
58 const header = btoa(JSON.stringify({ alg: "HS256", typ: "JWT" }));

Calls

no outgoing calls

Tested by

no test coverage detected