diff options
author | Daniel Jasper <djasper@google.com> | 2014-05-09 10:26:08 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-05-09 10:26:08 +0000 |
commit | c86e76ef0ac826b1628a477286248eaa7f55a7e4 (patch) | |
tree | a820c40813c6136b5dc0b8397dd229d0badbf665 /unittests | |
parent | 09a6d705045fd9df06c9d36076c526c92da31eec (diff) | |
download | clang-c86e76ef0ac826b1628a477286248eaa7f55a7e4.tar.gz |
clang-format: [JS] Fix spacing in dict literals.
Before:
someVariable = {'a':[{}]};
After:
someVariable = {'a': [{}]};
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTestJS.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJS.cpp b/unittests/Format/FormatTestJS.cpp index 73e050d6f4..cc67416493 100644 --- a/unittests/Format/FormatTestJS.cpp +++ b/unittests/Format/FormatTestJS.cpp @@ -85,6 +85,7 @@ TEST_F(FormatTestJS, SpacesInContainerLiterals) { verifyFormat("var obj = {a: 1, b: 2, c: 3};", getChromiumStyle(FormatStyle::LK_JavaScript)); + verifyFormat("someVariable = {'a': [{}]};"); } TEST_F(FormatTestJS, SingleQuoteStrings) { |