Commit bf3576d
committed
test(controllers): match relaxed validation message in testValidationRejectsExistingDestDir
Commit e6caf85 ("feat(controller): allow OpenNotebookController clone
into non-existing or empty dest") relaxed validateCloneInput's dest
predicate from "must NOT exist" to "non-existing OR existing empty
directory", and changed the rejection message accordingly. The test
testValidationRejectsExistingDestDir still asserted the OLD message
substring ("already exists") and was failing with
validation message must mention 'already exists'
(got: Local root folder must be empty (contains 1 item(s)).)
The test's setup already creates a non-empty dest dir (with a sentinel
file), so the test's intent is still valid: NON-EMPTY existing dirs
must be rejected. Only the assertion substring needed updating to
"must be empty". The renamed local var (already_exists -> non_empty_exists)
and the expanded comment now correctly reflect the post-e6caf855
behavior contract.1 parent a1edeba commit bf3576d
1 file changed
Lines changed: 11 additions & 5 deletions
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
326 | 332 | | |
327 | 333 | | |
328 | 334 | | |
| |||
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
341 | | - | |
342 | | - | |
343 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
| |||
0 commit comments