Debugging dragging pallete yo canvas

Could you share the javascript code which i can test in my browser to drag a pallete to a canvas.
Pallete here is dom element.
Trying to include this to my testing framework

Do you mean dragging an item from a GoJS Palette to drop into a Diagram?