Преглед изворни кода

Merge pull request #985 from RooVetGit/fix_abort_mock

Fix mock of Cline.abort in tests
Matt Rubens пре 1 година
родитељ
комит
b933ce44e4
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,
 				})