From 259188b1b58e9441d0aff11537a589b61ce611ed Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 12 Jun 2015 04:56:34 +0000 Subject: clang-format: [JS] Fix regression caused by r239592. Without it, it would do: interface I { x: string; } var y; llvm-svn: 239593 --- clang/unittests/Format/FormatTestJS.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/unittests/Format/FormatTestJS.cpp') diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index e01637bfad4..0f9f38240a3 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -665,7 +665,8 @@ TEST_F(FormatTestJS, ClassDeclarations) { TEST_F(FormatTestJS, InterfaceDeclarations) { verifyFormat("interface I {\n" " x: string;\n" - "}"); + "}\n" + "var y;"); } TEST_F(FormatTestJS, MetadataAnnotations) { -- cgit v1.2.3