From fd351472cfbefaa5fd31331d277855b436f82ca6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Georg=20Sch=C3=B6lly?= Date: Sat, 25 Jun 2016 12:59:00 +0200 Subject: [PATCH] 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. --- tests/messages/test_js_extract.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.47.2