From 3a246f8b384bd905142a03bb2648b6749de62f5c Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 7 Feb 2022 13:17:55 -0700 Subject: [PATCH] test notea does not return recursive deleted --- app/crawler/notea_test.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/crawler/notea_test.sh b/app/crawler/notea_test.sh index 426feb4..92ee78b 100644 --- a/app/crawler/notea_test.sh +++ b/app/crawler/notea_test.sh @@ -9,7 +9,8 @@ test_ids() { "items": { "root": { "children": [ - "abc" + "abc", + "xyz" ] }, "abc": { @@ -17,7 +18,18 @@ test_ids() { }, "def": { "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 | grep -q def || return 102 + ! ids | grep -q wvu || return 103 + ! ids | grep -q xyz || return 104 EOF )" }