File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def test_popup_show():
134134 rendered = popup ._template .render (this = popup , kwargs = {})
135135 expected = """
136136 var {popup_name} = L.popup({{
137- "maxWidth": "100%","autoClose": false,"closeOnClick": null ,
137+ "maxWidth": "100%","autoClose": false,"closeOnClick": true ,
138138 }});
139139 var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">Some text.</div>`)[0];
140140 {popup_name}.setContent({html_name});
@@ -155,8 +155,8 @@ def test_popup_backticks():
155155 expected = """
156156 var {popup_name} = L.popup({{
157157 "maxWidth": "100%",
158- "autoClose": null ,
159- "closeOnClick": null ,
158+ "autoClose": true ,
159+ "closeOnClick": true ,
160160 }});
161161 var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">back\\ `tick\\ `tick</div>`)[0];
162162 {popup_name}.setContent({html_name});
@@ -176,8 +176,8 @@ def test_popup_backticks_already_escaped():
176176 expected = """
177177 var {popup_name} = L.popup({{
178178 "maxWidth": "100%",
179- "autoClose": null ,
180- "closeOnClick": null ,
179+ "autoClose": true ,
180+ "closeOnClick": true ,
181181 }});
182182 var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">back\\ `tick</div>`)[0];
183183 {popup_name}.setContent({html_name});
You can’t perform that action at this time.
0 commit comments