]> code.delx.au - gnu-emacs-elpa/commitdiff
Add a test for #335 as well
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 29 May 2016 00:27:22 +0000 (03:27 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 29 May 2016 00:27:22 +0000 (03:27 +0300)
tests/indent.el

index 2fe60378c8832ba0fb42edcdab0ef8439fc92b8a..18b96589b1528f978abf9fde4d472f88cc6b8502 100644 (file)
   |    -5
   |];")
 
+(js2-deftest-indent spread-inside-array
+  "var z = [
+  |  ...iterableObj,
+  |  4,
+  |  5
+  |]")
+
 (js2-deftest-indent jsx-one-line
   "var foo = <div></div>;")