{"ScriptPreparationCode":null,"TestCases":[{"Name":"simple condition","Code":"const elementText = \u0027text\u0027 \r\n if (elementText \u0026\u0026 elementText.trim()) {\r\n return elementText.trim().toLowerCase();\r\n }","IsDeferred":false},{"Name":"function ","Code":"const getProcessedTextIfNotEmpty = (text) =\u003E {\r\n return text \u0026\u0026 text.trim() ? text.trim().toLowerCase() : null;\r\n }\r\nconst processedElementText = getProcessedTextIfNotEmpty(\u0027text\u0027);\r\n if (processedElementText) {\r\n return processedElementText;\r\n }","IsDeferred":false}]}