Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Jun 22, 2020
1 parent d3981ea commit 7257337
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/core/src/editor/tests/NodeHelpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,14 @@ describe('NodeHelpers', () => {
).toEqual(false);
});
it("should return false if node's rule rejects outgoing target", () => {
// Should not return false if the target is moving within the same parent
expect(
helper(
'canvas-node-reject-outgoing-dnd'
).isDroppable('fixed-child-node', (err) => console.log(err))
helper('canvas-node-reject-outgoing-dnd').isDroppable(
'fixed-child-node'
)
).toEqual(true);

// should return false if the target moved to a different parent
expect(helper('canvas-node').isDroppable('fixed-child-node')).toEqual(
false
);
Expand Down

0 comments on commit 7257337

Please sign in to comment.