Repository navigation
Commit 51d6b5f
committed
test(host): pin the sentence a refused state write answers with
`store.save()` refuses a temp name that is not a plain file of its own with
one sentence that names the temp path: it is what a Bot, and through it the
user, reads to learn why nothing was saved. The three cases that reach that
guard — a directory, a symbol link and a hard link at the temp name — asserted
only that the save rejects, so the sentence could be rewritten, or the error
swapped for another class or given a code, with all three still green. Each
keeps its `assert.rejects` and now validates the error's name, the absence of a
code, and the message word for word through one shared constant.1 parent 2eb9661 commit 51d6b5f
2 files changed
Lines changed: 35 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| |||
138 | 152 | | |
139 | 153 | | |
140 | 154 | | |
141 | | - | |
| 155 | + | |
142 | 156 | | |
143 | 157 | | |
144 | 158 | | |
| |||
488 | 502 | | |
489 | 503 | | |
490 | 504 | | |
491 | | - | |
| 505 | + | |
492 | 506 | | |
493 | 507 | | |
494 | 508 | | |
| |||
525 | 539 | | |
526 | 540 | | |
527 | 541 | | |
528 | | - | |
| 542 | + | |
529 | 543 | | |
530 | 544 | | |
531 | 545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2261 | 2261 | | |
2262 | 2262 | | |
2263 | 2263 | | |
2264 | | - | |
| 2264 | + | |
2265 | 2265 | | |
2266 | 2266 | | |
2267 | 2267 | | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
2268 | 2282 | | |
2269 | 2283 | | |
2270 | 2284 | | |
| |||
2342 | 2356 | | |
2343 | 2357 | | |
2344 | 2358 | | |
2345 | | - | |
| 2359 | + | |
2346 | 2360 | | |
2347 | 2361 | | |
2348 | 2362 | | |
| |||
2499 | 2513 | | |
2500 | 2514 | | |
2501 | 2515 | | |
2502 | | - | |
| 2516 | + | |
2503 | 2517 | | |
2504 | 2518 | | |
2505 | 2519 | | |
| |||
2536 | 2550 | | |
2537 | 2551 | | |
2538 | 2552 | | |
2539 | | - | |
| 2553 | + | |
2540 | 2554 | | |
2541 | 2555 | | |
2542 | 2556 | | |
| |||
0 commit comments