mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
Merge pull request #985 from RooVetGit/fix_abort_mock
Fix mock of Cline.abort in tests
This commit is contained in:
commit
b933ce44e4
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue