Repository navigation
Commit 3339570
committed
test(core): assert the edit type open() actually saw
The two rows in file existence detection asserted only the value handle() ended
on. That is satisfied by an assignment placed below the open call, and the order
is what the file's content depends on: open() reads this.editType to decide
whether the target exists and empties the file for anything that is not
"modify" (DiffViewProvider.ts:127, 154-158, 167-168). The provider mock now
records the field at the call and both rows assert the recorded value.
Control: moving WriteToFileTool.ts:437 below the open at 517 fails exactly those
two rows - expected [ undefined ] to deeply equal [ modify ] and [ create ] -
while the pre-existing final-value assertions still pass, which is the gap the
review named. 78 passed, 5 skipped with the production head untouched.1 parent d11e250 commit 3339570
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| |||
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
169 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| |||
305 | 314 | | |
306 | 315 | | |
307 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
308 | 320 | | |
309 | 321 | | |
310 | 322 | | |
311 | 323 | | |
312 | 324 | | |
313 | 325 | | |
| 326 | + | |
314 | 327 | | |
315 | 328 | | |
316 | 329 | | |
| |||
0 commit comments