test(tui): assert colon metadata ordering

This commit is contained in:
Vincent Koc 2026-05-03 09:15:42 -07:00
parent 788f0b7e58
commit 672e223bb9
No known key found for this signature in database

View File

@ -1816,7 +1816,7 @@ func TestDocumentDetailSeparatesProviderAndSource(t *testing.T) {
if strings.Contains(joined, "source: notion") {
t.Fatalf("document detail should not duplicate provider as source:\n%s", joined)
}
if strings.Index(joined, "alpha=first") > strings.Index(joined, "zeta=last") {
if strings.Index(joined, "alpha: first") > strings.Index(joined, "zeta: last") {
t.Fatalf("field tail should be stable and sorted:\n%s", joined)
}
}