From: Georg Schölly Date: Sat, 25 Jun 2016 10:59:00 +0000 (+0200) Subject: Increase coverage of JSX extraction tests X-Git-Tag: v2.4.0~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F425%2Fhead;p=thirdparty%2Fbabel.git Increase coverage of JSX extraction tests b5e0ad8 fixed a few bugs with jsx parsing but only added tests for the lexer. This commit adds a test for the extraction which did not work before: { _"Text" } This test case is not present yet in the suite, only tags with attributes () are, but they get extracted correctly already. --- diff --git a/tests/messages/test_js_extract.py b/tests/messages/test_js_extract.py index 35322ea1..d19c255f 100644 --- a/tests/messages/test_js_extract.py +++ b/tests/messages/test_js_extract.py @@ -108,10 +108,12 @@ class Foo { + + ); } """ -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))