Просмотр исходного кода

Fix mock of Cline.abort in tests

Matt Rubens 10 месяцев назад
Родитель
Сommit
d6e775002f
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/core/__tests__/Cline.test.ts

+ 3 - 0
src/core/__tests__/Cline.test.ts

@@ -475,6 +475,7 @@ describe("Cline", () => {
 				// Mock abort state
 				Object.defineProperty(cline, "abort", {
 					get: () => false,
+					set: () => {},
 					configurable: true,
 				})
 
@@ -603,10 +604,12 @@ describe("Cline", () => {
 				// Mock abort state for both instances
 				Object.defineProperty(clineWithImages, "abort", {
 					get: () => false,
+					set: () => {},
 					configurable: true,
 				})
 				Object.defineProperty(clineWithoutImages, "abort", {
 					get: () => false,
+					set: () => {},
 					configurable: true,
 				})