Skip to content

Commit

Permalink
update validation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
blueswen committed May 2, 2024
1 parent 4963fdb commit 8e65265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8e65265

Please sign in to comment.