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:
parent
6a6c2bad50
commit
42d0769683
@ -166,6 +166,10 @@ describe("babylon-to-espree", () => {
|
||||
}}\`;
|
||||
`);
|
||||
});
|
||||
|
||||
it("template string with object with template string inside", () => {
|
||||
parseAndAssertSame("`${ { a:`${2}` } }`");
|
||||
});
|
||||
});
|
||||
|
||||
it("simple expression", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user