test: 💍 add some tests

This commit is contained in:
youxingzhi
2019-12-30 12:17:51 +08:00
parent 57be520b99
commit d4f911b7b5
11 changed files with 359 additions and 102 deletions

View File

@@ -115,7 +115,7 @@ TreeNode.prototype._beforeInsert = function (target) {
return false
}
// cannot move ancestor to child
// cannot insert ancestor to child
if (this.isTargetChild(target)) {
return false
}