test notea does not return recursive deleted
parent
1c6cdec2c0
commit
3a246f8b38
|
|
@ -9,7 +9,8 @@ test_ids() {
|
||||||
"items": {
|
"items": {
|
||||||
"root": {
|
"root": {
|
||||||
"children": [
|
"children": [
|
||||||
"abc"
|
"abc",
|
||||||
|
"xyz"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"abc": {
|
"abc": {
|
||||||
|
|
@ -17,6 +18,17 @@ test_ids() {
|
||||||
},
|
},
|
||||||
"def": {
|
"def": {
|
||||||
"pid": "root"
|
"pid": "root"
|
||||||
|
},
|
||||||
|
"xyz": {
|
||||||
|
"pid": "root",
|
||||||
|
"deleted": 1,
|
||||||
|
"children": [
|
||||||
|
"wvu"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"wvu": {
|
||||||
|
"pid": "xyz",
|
||||||
|
"deleted": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
|
|
@ -33,6 +45,8 @@ test_ids() {
|
||||||
}
|
}
|
||||||
ids | wc -l | grep -q 1 || return 101
|
ids | wc -l | grep -q 1 || return 101
|
||||||
ids | grep -q def || return 102
|
ids | grep -q def || return 102
|
||||||
|
! ids | grep -q wvu || return 103
|
||||||
|
! ids | grep -q xyz || return 104
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue