test notea does not return recursive deleted

master
Bel LaPointe 2022-02-07 13:17:55 -07:00
parent 1c6cdec2c0
commit 3a246f8b38
1 changed files with 16 additions and 2 deletions

View File

@ -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
)" )"
} }