Skip to content

Commit e52a225

Browse files
committed
fix: tests
1 parent 5e55466 commit e52a225

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

extensions/cli/src/services/ConfigService.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,14 @@ describe("ConfigService", () => {
677677
config,
678678
mockApiClient as any,
679679
{ accessToken: "token" } as any,
680+
true,
680681
),
681-
).rejects.toThrow("No model specified and failed to load default model");
682+
).rejects.toThrow(
683+
"No model specified in headless mode (and failed to load default model)",
684+
);
682685
});
683686

684-
test("should throw error when loaded default model is empty", async () => {
687+
test("should throw error when loaded default model is empty in headless", async () => {
685688
const config = {
686689
name: "test-config",
687690
version: "1.0.0",
@@ -704,8 +707,11 @@ describe("ConfigService", () => {
704707
config,
705708
mockApiClient as any,
706709
{ accessToken: "token" } as any,
710+
true,
707711
),
708-
).rejects.toThrow("No model specified and failed to load default model");
712+
).rejects.toThrow(
713+
"No model specified in headless mode (and failed to load default model)",
714+
);
709715
});
710716

711717
test("should work with null access token", async () => {

extensions/cli/src/ui/UpdateNotification.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe("UpdateNotification", () => {
119119

120120
const { lastFrame } = render(<UpdateNotification />);
121121

122-
expect(lastFrame()).toContain("Updating to v1.0.1");
122+
expect(lastFrame()).toContain("Updating to v1.0.1");
123123
});
124124

125125
it("should show updated message when update completes", () => {

0 commit comments

Comments
 (0)