Skip to content

Commit

Permalink
Fix unknown demo build issue, attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
monim67 committed Dec 9, 2023
1 parent 05b1b20 commit 8e265fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def test_build(live_server: LiveServer) -> None:
"/django-flatpickr/demo/static/django_flatpickr/",
),
]
mjs_file = pages / "demo/static/django_flatpickr/js/django-flatpickr.mjs"
mjs_file = pages / "demo/static/django_flatpickr/js/django-flatpickr.js.mjs"
if mjs_file.exists():
mjs_file.rename(mjs_file.with_suffix(".js"))
mjs_file.rename(mjs_file.with_suffix(""))
for file in pages.glob("demo/*.html"):
file_text = file.read_text()
for search_text, replace_text in url_replacements:
Expand Down

0 comments on commit 8e265fc

Please sign in to comment.