From 5881648e11117f11801f1cf36aa97d38e821fde0 Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Fri, 22 Jun 2018 11:12:54 -0500 Subject: [PATCH] Add test for template string with object with template string inside (#639) Closes https://github.com/babel/babel-eslint/pull/538. Fixes https://github.com/babel/babel-eslint/issues/537. Now that https://github.com/babel/babel-eslint/pull/610 has landed, I wanted to make sure this case was covered. --- test/babel-eslint.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/babel-eslint.js b/test/babel-eslint.js index 98b7e939..99b03f25 100644 --- a/test/babel-eslint.js +++ b/test/babel-eslint.js @@ -166,6 +166,10 @@ describe("babylon-to-espree", () => { }}\`; `); }); + + it("template string with object with template string inside", () => { + parseAndAssertSame("`${ { a:`${2}` } }`"); + }); }); it("simple expression", () => {