File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -523,7 +523,6 @@ struct SidebarViewModelMultiSectionTests {
523523
524524@Suite ( " SidebarViewModel search debounce " )
525525struct SidebarViewModelSearchDebounceTests {
526-
527526 @Test ( " filterQuery updates immediately on first non-empty input " )
528527 @MainActor
529528 func filterQueryUpdatesImmediatelyOnFirstInput( ) {
@@ -598,15 +597,16 @@ struct SidebarViewModelSearchDebounceTests {
598597 func filteredTablesHonorsFilterQueryNotSearchText( ) async {
599598 let vm = makeViewModel ( )
600599 let users = TestFixtures . makeTableInfo ( name: " users " , type: . table)
600+ let userLog = TestFixtures . makeTableInfo ( name: " user_log " , type: . table)
601601 let orders = TestFixtures . makeTableInfo ( name: " orders " , type: . table)
602- let mixed = [ users, orders]
602+ let mixed = [ users, userLog , orders]
603603
604604 vm. searchText = " user "
605605 vm. searchText = " users "
606606 await Task . yield ( )
607607
608608 let matches = vm. filteredTables ( of: . table, from: mixed)
609609
610- #expect( matches. map ( \. name) == [ " users " ] )
610+ #expect( matches. map ( \. name) == [ " users " , " user_log " ] )
611611 }
612612}
You can’t perform that action at this time.
0 commit comments