diff --git a/tests/test_builds.py b/tests/test_builds.py index 4c76a47..810fd7b 100644 --- a/tests/test_builds.py +++ b/tests/test_builds.py @@ -183,7 +183,7 @@ def test_material(tmp_path): validate_static(contents) validate_script(contents) assert re.search( - r"document\$\.subscribe\(\(\) => {const lightbox = GLightbox\((.*)\);}\)", + r"document\$\.subscribe\(\(\) => { lightbox.reload\(\) }\);", contents, ) assert re.search( @@ -518,7 +518,7 @@ def test_material_template(tmp_path): validate_static(contents) validate_script(contents) assert re.search( - r"document\$\.subscribe\(\(\) => {const lightbox = GLightbox\((.*)\);}\)", + r"document\$\.subscribe\(\(\) => { lightbox.reload\(\) }\);", contents, ) assert re.search(