Fix review findings: dual-entry image capture, image blob GC at limit, stdin drain, fuzzy query edge cases, uri encoding, GC queue, temp-file pruning, theme border widths

This commit is contained in:
2026-09-05 15:43:33 +01:00
parent 44808ffd2c
commit 63a003e4a5
11 changed files with 73 additions and 41 deletions
+9 -1
View File
@@ -156,7 +156,15 @@ test("highlightFirstLine multiline only first line", () => {
assert.ok(!html.includes("\n"))
})
test("parseQuery yesterday bounds", () => {
test("parseQuery yesterday excludes today", () => {
const q = Fuzzy.parseQuery("yesterday")
assert.equal(q.maxAge, 172800)
assert.equal(q.minAge, 86400)
})
test("regression: unknown type: token becomes a term even after a known one", () => {
const q = Fuzzy.parseQuery("type:image type:foo")
assert.equal(q.type, "image")
assert.equal(q.terms.length, 1)
assert.equal(q.terms[0], "type:foo")
})