MCPcopy Create free account
hub / github.com/github/copilot-sdk / assertArgumentValue

Function assertArgumentValue

nodejs/test/e2e/client_options.e2e.test.ts:127–139  ·  view source on GitHub ↗
(
    args: (string | undefined)[],
    name: string,
    expectedValue: string
)

Source from the content-addressed store, hash-verified

125}
126
127function assertArgumentValue(
128 args: (string | undefined)[],
129 name: string,
130 expectedValue: string
131): void {
132 const index = args.indexOf(name);
133 expect(
134 index,
135 `Expected argument '${name}' was not present. Args: ${args.join(" ")}`
136 ).toBeGreaterThanOrEqual(0);
137 expect(index + 1).toBeLessThan(args.length);
138 expect(args[index + 1]).toBe(expectedValue);
139}
140
141describe("Client options", async () => {
142 const { copilotClient: defaultClient, env, workDir } = await createSdkTestContext();

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…