Commit 9d94cf0
committed
Fix LoginForm test to use window.location.href for query params
While window.history.replaceState should work with vitest-location-mock, it
doesn't actually update window.location in practice. Setting window.location.href
directly does work and properly updates window.location.search for the component
to read during setup.1 parent ae6e48f commit 9d94cf0
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
0 commit comments