Skip to content

Commit c98fb6d

Browse files
committed
Fix tests
1 parent 7f0b4e2 commit c98fb6d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/test_clear_requests.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def test_multiple_clears_concatenates_all_requests
130130
assert_equal expected_requests, @state.cleared_requests[:requests]
131131
assert_equal expected_requests.size, @state.cleared_requests[:requests].size
132132

133-
# Should store the most recent state (from second clear)
134-
assert_equal 2, @state.cleared_requests[:selected]
135-
assert_equal 6, @state.cleared_requests[:scroll_offset]
133+
# Should preserve the state from the FIRST clear (not the second)
134+
assert_equal 1, @state.cleared_requests[:selected]
135+
assert_equal 3, @state.cleared_requests[:scroll_offset]
136136

137137
# Verify the order: original requests first, then new ones
138138
assert_equal original_requests.first.request_id, @state.cleared_requests[:requests].first.request_id

0 commit comments

Comments
 (0)