]> granicus.if.org Git - clang/commitdiff
clang-format: [JS] fix broken test.
authorMartin Probst <martin@probst.io>
Mon, 9 Jan 2017 09:00:58 +0000 (09:00 +0000)
committerMartin Probst <martin@probst.io>
Mon, 9 Jan 2017 09:00:58 +0000 (09:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291429 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTestJS.cpp

index 12554a1dc23b13cb6da5a454b8c6c9225a489caa..230717fe47cc4a2bfc2b369e1508b89ca3830516 100644 (file)
@@ -859,7 +859,9 @@ TEST_F(FormatTestJS, AutomaticSemicolonInsertionHeuristic) {
                "a = null\n"
                "  return   1");
   verifyFormat(
-      "x = {a: 1}\n"
+      "x = {\n"
+      "  a: 1\n"
+      "}\n"
       "class Y {}",
       "  x  =  {a  : 1}\n"
       "   class  Y {  }");