diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_downloads.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_downloads.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/meshbay-hub/tests/test_downloads.py b/packages/meshbay-hub/tests/test_downloads.py index 80c3b05..32d3e11 100644 --- a/packages/meshbay-hub/tests/test_downloads.py +++ b/packages/meshbay-hub/tests/test_downloads.py @@ -145,9 +145,11 @@ def test_a_length_is_only_promised_when_it_is_known(tmp_path): src = SW.read_text() assert "if (entry.size > 0)" in src - # The zip-directory download is Files' own, moved to files-app.js in the - # group-page refactor. - app = (STATIC / "files-app.js").read_text() + # The zip-directory download started in files-app.js (group-page refactor) + # and was lifted into file-utils.js's downloadDirectory (docs/photos.md + # §3) so photos-app.js's own "zip this album" button calls the same + # implementation rather than a second one. + app = (STATIC / "file-utils.js").read_text() zip_call = app[app.index("const target = await _openDownloadTarget(suggested"):] zip_call = zip_call[:zip_call.index(");") + 2] assert zip_call.rstrip().endswith(", 0);"), ( |