diff --git a/tests/lib/rules/prefer-template.js b/tests/lib/rules/prefer-template.js index 676b4b67dd1..9d45d5c6ac2 100644 --- a/tests/lib/rules/prefer-template.js +++ b/tests/lib/rules/prefer-template.js @@ -365,6 +365,11 @@ ruleTester.run("prefer-template", rule, { output: "`${a }\\`b\\`` + `\\`c\\`${ d}`", errors }, + { + code: "a + ('`b` + `c`' + '`d`') + e", + output: "`${a }\\`b\\` + \\`c\\`` + `\\`d\\`${ e}`", + errors + }, { code: "var foo = \"Hello \" + \"world \" + \"another \" + test", output: "var foo = \"Hello \" + \"world \" + `another ${ test}`",