diff options
author | Aarni Koskela <akx@iki.fi> | 2016-11-19 16:27:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-19 16:27:46 +0200 |
commit | 9af0821eb47e135faa18b3da143096eea301160a (patch) | |
tree | 24045f2b16d3256e316dc8293249064126054ac7 | |
parent | f8b62e5d74a11d572ffb8898d17f72ed09048583 (diff) | |
parent | fd351472cfbefaa5fd31331d277855b436f82ca6 (diff) | |
download | babel-9af0821eb47e135faa18b3da143096eea301160a.tar.gz |
Merge pull request #425 from georgschoelly/jsx_tests
Increase coverage of JSX extraction tests
-rw-r--r-- | tests/messages/test_js_extract.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/messages/test_js_extract.py b/tests/messages/test_js_extract.py index 35322ea..d19c255 100644 --- a/tests/messages/test_js_extract.py +++ b/tests/messages/test_js_extract.py @@ -108,10 +108,12 @@ class Foo { <option value="val1">{ i18n._('String1') }</option> <option value="val2">{ i18n._('String 2') }</option> <option value="val3">{ i18n._('String 3') }</option> + <option value="val4">{ _('String 4') }</option> + <option>{ _('String 5') }</option> ); } """ -EXPECTED_JSX_MESSAGES = ["hello", "String1", "String 2", "String 3"] +EXPECTED_JSX_MESSAGES = ["hello", "String1", "String 2", "String 3", "String 4", "String 5"] @pytest.mark.parametrize("jsx_enabled", (False, True)) |