From 8e652652429851d18a0c920ca1ddcbf12ab71fdf Mon Sep 17 00:00:00 2001 From: blueswen Date: Fri, 3 May 2024 00:18:58 +0800 Subject: [PATCH] update validation condition --- tests/test_builds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(