Skip to content

Commit

Permalink
Add test for template string with object with template string inside (b…
Browse files Browse the repository at this point in the history
…abel#639)

Closes babel#538.
Fixes babel#537.

Now that babel#610 has landed, I wanted to make sure this case was covered.
  • Loading branch information
existentialism committed Jun 22, 2018
1 parent 476426a commit 5881648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/babel-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ describe("babylon-to-espree", () => {
}}\`;
`);
});

it("template string with object with template string inside", () => {
parseAndAssertSame("`${ { a:`${2}` } }`");
});
});

it("simple expression", () => {
Expand Down

0 comments on commit 5881648

Please sign in to comment.