Merge pull request #985 from RooVetGit/fix_abort_mock

Fix mock of Cline.abort in tests
This commit is contained in:
Matt Rubens 2025-02-13 16:41:49 -05:00 • committed by GitHub
commit b933ce44e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
})