Skip to content

Commit

Permalink
test: fix tests after typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Apr 4, 2023
1 parent 8c11b81 commit cf41edd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/unit/data_quality_tags_panel.t
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ my @tests = (
desc => "A panel with one error of one action type",
tag_type => "data_quality_errors",
product => {data_quality_errors_tags => ["en:energy-value-in-kcal-does-not-match-value-in-kj"]},
desc => "A panel with one error of one action type",
},
{
id => "one_warning_one_action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"element_type" : "text",
"text_element" : {
"html" : "<ul> <li id=\"data-error-en:nutrition-data-prepared\"> Nutrition data - Prepared <br><span class=\"description\">We have nutritino data for prepared product</span> </li> </ul>"
"html" : "<ul> <li id=\"data-error-en:nutrition-data-prepared\"> Nutrition data - Prepared <br><span class=\"description\">We have nutrition data for prepared product</span> </li> </ul>"
}
}
],
Expand Down
20 changes: 20 additions & 0 deletions tests/unit/expected_test_results/tags/regexps.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,26 @@
"en:lemon-yogurts",
"yaourts-au-citron"
],
[
"fr:yaourts-alleges",
"yoghourts-alleges"
],
[
"fr:yaourts-alleges",
"yogourts-alleges"
],
[
"fr:yaourts-alleges",
"yaourts alleges"
],
[
"fr:yaourts-alleges",
"yaourts allégés"
],
[
"fr:yaourts-alleges",
"yaourts-alleges"
],
[
"fr:french-entry",
"French entry"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tags.t
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ is_deeply(
);
is_deeply(
get_inherited_properties("test", "fr:yaourts-au-fruit-de-la-passion-alleges", ["color:en", "description:fr"]),
{"description:fr" => "un yaourt de n'import quel type"},
{"description:fr" => "un yaourt de n'importe quel type"},
"Getting multiple properties with one undef in the path and an inherited one"
);

Expand Down

0 comments on commit cf41edd

Please sign in to comment.