diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-30 10:41:00 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-30 10:41:00 +0200 |
| commit | e2a487c3cd24589b9d9bd298b79d8efaa9914480 (patch) | |
| tree | 3b151312d5d91b49d92721914401a852bcfbb671 /packages/meshbay-hub/tests/test_asset_versioning.py | |
| parent | e7859865e9519aa529f15c1e7a852f3841c44986 (diff) | |
| download | meshbay-e2a487c3cd24589b9d9bd298b79d8efaa9914480.tar.gz | |
feat(hub): search title, description, canonical and noscript in the shell
A descriptive <title>, a two-line meta description apart from the
short one messengers get, "/" canonical for every shell path, and a
<noscript> pitch with the download and doc links for crawlers that
do not run app.js.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_asset_versioning.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_asset_versioning.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/test_asset_versioning.py b/packages/meshbay-hub/tests/test_asset_versioning.py index 7057311..2d90a51 100644 --- a/packages/meshbay-hub/tests/test_asset_versioning.py +++ b/packages/meshbay-hub/tests/test_asset_versioning.py @@ -32,7 +32,10 @@ def client(): def _shell_refs(html: str) -> list[str]: - return re.findall(r'(?:src|href)="([^"]+)"', html) + """What the shell loads: script sources and <link> files. Not the canonical + link nor the <noscript> anchors, which name pages rather than fetch them.""" + return (re.findall(r'src="([^"]+)"', html) + + re.findall(r'<link rel="(?!canonical")[^"]+" href="([^"]+)"', html)) def test_every_asset_the_shell_loads_is_versioned(client): |