Add test for template string with object with template string inside (babel/babel-eslint#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.
This commit is contained in:
Brian Ng 2018-06-22 11:12:54 -05:00
parent 6a6c2bad50
commit 42d0769683

View File

@ -166,6 +166,10 @@ describe("babylon-to-espree", () => {
}}\`; }}\`;
`); `);
}); });
it("template string with object with template string inside", () => {
parseAndAssertSame("`${ { a:`${2}` } }`");
});
}); });
it("simple expression", () => { it("simple expression", () => {