sequelize-nested-set
sequelize-nested-set copied to clipboard
Write tests for single-root tree
Here is the full list of functions:
- [ ] createRoot
- [ ] fetchRoot
- [ ] fetchTree
- [ ] fetchRoots
- [ ] hasPrevSibling
- [ ] hasNextSibling
- [ ] hasChildren
- [ ] hasParent
- [ ] getPrevSibling
- [ ] getNextSibling
- [ ] getSiblings
- [ ] getFirstChild
- [ ] getLastChild
- [ ] getChildren
- [ ] getDescendants
- [ ] getParent
- [ ] getAncestors
- [ ] getNumberChildren
- [ ] getNumberDescendants
- [ ] insertAsParentOf
- [ ] insertAsPrevSiblingOf
- [ ] insertAsNextSiblingOf
- [ ] insertAsFirstChildOf
- [ ] insertAsLastChildOf
- [ ] moveBetweenTrees
- [ ] moveAsPrevSiblingOf
- [ ] moveAsNextSiblingOf
- [ ] moveAsFirstChildOf
- [ ] moveAsLastChildOf
- [ ] makeRoot
- [ ] addChild
- [ ] isLeaf
- [ ] isRoot
- [ ] isEqualTo
- [ ] isDescendantOf
- [ ] isDescendantOfOrEqualTo
- [ ] isAncestorOf
- [ ] isValidNode
- [ ] detach
- [ ] delete
- [ ] insertNode
- [ ] updateNode
- [ ] shiftRlValues
- [ ] shiftRlRange