Closed Fabrice-TIERCELIN closed 4 years ago
Given: let text1 = 'ba'; let text2 = 'ar'; let isTheSame = text1 + 'r' === 'b' + text2;
When: Refactoring enabling "String concatenation to template expression"...
Actual: let text1 = 'ba'; let text2 = 'ar'; let isTheSame = ${text1}r${b${text2}};
${text1}r${
}
Expected: let text1 = 'ba'; let text2 = 'ar'; let isTheSame = ${text1}r === b${text2};
${text1}r
b${text2}
Operand types and operator should be checked.
Given: let text1 = 'ba'; let text2 = 'ar'; let isTheSame = text1 + 'r' === 'b' + text2;
When: Refactoring enabling "String concatenation to template expression"...
Actual: let text1 = 'ba'; let text2 = 'ar'; let isTheSame =
${text1}r${
b${text2}}
;Expected: let text1 = 'ba'; let text2 = 'ar'; let isTheSame =
${text1}r
===b${text2}
;Operand types and operator should be checked.