Skip to content

Commit 4e20af1

Browse files
patnikoCopilot
andcommitted
Fix prettier formatting
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 396df64 commit 4e20af1

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

nodejs/test/e2e/error_resilience.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ describe("Error Resilience", async () => {
3636
});
3737

3838
it("should throw when resuming non-existent session", async () => {
39-
await expect(client.resumeSession("non-existent-session-id-12345", { onPermissionRequest: approveAll })).rejects.toThrow();
39+
await expect(
40+
client.resumeSession("non-existent-session-id-12345", {
41+
onPermissionRequest: approveAll,
42+
})
43+
).rejects.toThrow();
4044
});
4145
});

nodejs/test/e2e/streaming_fidelity.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ describe("Streaming Fidelity", async () => {
1010
const { copilotClient: client } = await createSdkTestContext();
1111

1212
it("should produce delta events when streaming is enabled", async () => {
13-
const session = await client.createSession({ onPermissionRequest: approveAll, streaming: true });
13+
const session = await client.createSession({
14+
onPermissionRequest: approveAll,
15+
streaming: true,
16+
});
1417
const events: SessionEvent[] = [];
1518
session.on((event) => {
1619
events.push(event);
@@ -44,7 +47,10 @@ describe("Streaming Fidelity", async () => {
4447
});
4548

4649
it("should not produce deltas when streaming is disabled", async () => {
47-
const session = await client.createSession({ onPermissionRequest: approveAll, streaming: false });
50+
const session = await client.createSession({
51+
onPermissionRequest: approveAll,
52+
streaming: false,
53+
});
4854
const events: SessionEvent[] = [];
4955
session.on((event) => {
5056
events.push(event);

test/harness/replayingCapiProxy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ export class ReplayingCapiProxy extends CapturingHttpProxy {
294294
) {
295295
const streamingIsRequested =
296296
options.body &&
297-
(JSON.parse(options.body) as { stream?: boolean }).stream === true;
297+
(JSON.parse(options.body) as { stream?: boolean }).stream ===
298+
true;
298299
const headers = {
299300
"content-type": streamingIsRequested
300301
? "text/event-stream"

0 commit comments

Comments
 (0)