Skip to content

Commit b933ce4

Browse files
authored
Merge pull request #985 from RooVetGit/fix_abort_mock
Fix mock of Cline.abort in tests
2 parents a780d70 + d6e7750 commit b933ce4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/__tests__/Cline.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ describe("Cline", () => {
475475
// Mock abort state
476476
Object.defineProperty(cline, "abort", {
477477
get: () => false,
478+
set: () => {},
478479
configurable: true,
479480
})
480481

@@ -603,10 +604,12 @@ describe("Cline", () => {
603604
// Mock abort state for both instances
604605
Object.defineProperty(clineWithImages, "abort", {
605606
get: () => false,
607+
set: () => {},
606608
configurable: true,
607609
})
608610
Object.defineProperty(clineWithoutImages, "abort", {
609611
get: () => false,
612+
set: () => {},
610613
configurable: true,
611614
})
612615

0 commit comments

Comments
 (0)