|
@@ -1962,6 +1962,12 @@ TEST_F(FormatTestJS, NestedTemplateStrings) {
|
|
|
TEST_F(FormatTestJS, TaggedTemplateStrings) {
|
|
|
verifyFormat("var x = html`<ul>`;");
|
|
|
verifyFormat("yield `hello`;");
|
|
|
+ verifyFormat("var f = {\n"
|
|
|
+ " param: longTagName`This is a ${\n"
|
|
|
+ " 'really'} long line`\n"
|
|
|
+ "};",
|
|
|
+ "var f = {param: longTagName`This is a ${'really'} long line`};",
|
|
|
+ getGoogleJSStyleWithColumns(40));
|
|
|
}
|
|
|
|
|
|
TEST_F(FormatTestJS, CastSyntax) {
|