DB & Dev Tools · APIs: a drop inside a folder lands last, tested

The collection's unit test now drops a request into a folder that holds
two, and asserts it lands after them.
This commit is contained in:
ZacharyZhang-NY committed 2026-09-27 10:51:19 -04:00
1 parent 658e4e73c6
commit da549cae24
2 files changed
+6

No files matched your search

+5
View File
@@ -239,6 +239,11 @@ mod tests {
keys(&moved(&items, "x", "b", DropAt::Inside)),
["a[y]", "b[x]", "z"]
);
assert_eq!(
keys(&moved(&items, "z", "a", DropAt::Inside)),
["a[x,y,z]", "b[]"],
"a drop inside a folder lands last"
);
assert_eq!(
keys(&moved(&items, "z", "x", DropAt::Before)),
["a[z,x,y]", "b[]"]