Commit 712eaef
Fix lint + clean up v2-direct-RPC tests
- `nodejs/src/session.ts` had an unused `PermissionRequestResult`
import after the v2 drop. eslint flagged it (`no-unused-vars`).
- `nodejs/test/client.test.ts` had a leftover test for the deleted
`handlePermissionRequestV2` v2 adapter. Delete the test.
- `rust/tests/session_test.rs` had two tests that drove the deleted
`permission.request` direct-RPC arm (`permission_request_dispatches_to_handler`,
`approve_all_handler_approves_permission`). Delete the first one and
rewrite the second to exercise the broadcast-event path
(`permission.requested` event + `handlePendingPermissionRequest`
RPC response), which is the only remaining permission flow.
- Drop unused `PermissionHandler` / `PermissionResult` imports that
the deleted tests left behind.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 13f7116 commit 712eaef
3 files changed
Lines changed: 13 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 20 | | |
35 | 21 | | |
36 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
1178 | 1177 | | |
1179 | 1178 | | |
1180 | 1179 | | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | 1180 | | |
1217 | 1181 | | |
1218 | 1182 | | |
| |||
1455 | 1419 | | |
1456 | 1420 | | |
1457 | 1421 | | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
| 1422 | + | |
| 1423 | + | |
1461 | 1424 | | |
1462 | | - | |
1463 | 1425 | | |
1464 | | - | |
| 1426 | + | |
| 1427 | + | |
1465 | 1428 | | |
1466 | 1429 | | |
1467 | 1430 | | |
1468 | | - | |
1469 | | - | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
1470 | 1439 | | |
1471 | 1440 | | |
1472 | 1441 | | |
| |||
0 commit comments