Add tests for tree reset propagation #60
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: profectus/Profectus#60
Loading…
Reference in a new issue
No description provided.
Delete branch "thepaperpilot/Profectus:feat/reset-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tests will fail until #57 is merged in.
7a7f95bc7b
to1f60960e5b
@ -0,0 +54,4 @@
}));
tree.reset(b);
expect(shouldNotReset.value).toBe(false);
});
This one isn't feeling right - isn't
tree.reset(node)
supposed to trigger that node'sreset
too, or istree.reset(node)
supposed to just start a reset that propagates from that node, but doesn't include it?I based this off the behavior based on the
createResetButton
util which calls reset on the node itself and then propagates the rest. The idea being that you're resetting for currency on that layer, not resetting that layer. This has been a point of contention previously though so I'm open to changing it in order to be more clear and intuitive, but that'll be a breaking change that's out of scope for this PR.Fair enough - should be fine to just talk about that in the features' docs, nothing that needs to change here then.