Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test that onMouseDown isn't overwritten
  • Loading branch information
AustinMroz committed Sep 7, 2025
commit d2bd5fd33141515f0e04ea3586bde5e4d0e18a2a
5 changes: 5 additions & 0 deletions tests-ui/tests/litegraph/core/LGraphNode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,5 +621,10 @@ describe('LGraphNode', () => {
expect(node.getInputSlotPos(inputSlot)).toEqual([expectedX, expectedY])
delete (node.constructor as any).slot_start_y
})
test('should not overwrite onMouseDown prototype', () => {
expect(Object.prototype.hasOwnProperty.call(node, 'onMouseDown')).toEqual(
false
)
})
})
})
Loading