summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2016-11-19 16:27:46 +0200
committerGitHub <noreply@github.com>2016-11-19 16:27:46 +0200
commit9af0821eb47e135faa18b3da143096eea301160a (patch)
tree24045f2b16d3256e316dc8293249064126054ac7
parentf8b62e5d74a11d572ffb8898d17f72ed09048583 (diff)
parentfd351472cfbefaa5fd31331d277855b436f82ca6 (diff)
downloadbabel-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.py4
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))