tmpl: fix a test

Alexander Medvednikov 2022-05-14 17:48:50 +03:00 committed by Jef Roosens
parent 58c54a5c05
commit 5a427907d5
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ fn test_template_interpolation_can_be_selectively_turned_on_in_script_tags() {
text := $tmpl('tmpl/selective_interpolation_in_script_tag.html')
dump(text)
assert text.contains('Username: abcd')
assert text.contains('var non_interpolated_labels = ['2012-11-30', '2022-12-29'];')
assert text.contains("var non_interpolated_labels = ['2012-11-30', '2022-12-29'];")
assert text.contains('var non_interpolated_values = [5, 6, 7, 1];')
assert text.contains("var real_labels = ['2012-11-30', '2022-12-29']; //V_TEMPLATE")
assert text.contains('var real_values = [5, 6, 7, 1]; //V_TEMPLATE')