aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/ecma/if_else.js6
-rw-r--r--tests/indent/javascript_spec.lua2
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/indent/ecma/if_else.js b/tests/indent/ecma/if_else.js
index 4f971c8fc..990ccd19a 100644
--- a/tests/indent/ecma/if_else.js
+++ b/tests/indent/ecma/if_else.js
@@ -11,3 +11,9 @@ if (cond1) {
} else {
do_fallback()
}
+
+if (true)
+ console.log('hi')
+console.log('hi')
+
+if (true)
diff --git a/tests/indent/javascript_spec.lua b/tests/indent/javascript_spec.lua
index 827539eeb..5659b22a1 100644
--- a/tests/indent/javascript_spec.lua
+++ b/tests/indent/javascript_spec.lua
@@ -75,6 +75,8 @@ describe("indent JavaScript:", function()
{ 9, 2 },
{ 12, 2 },
{ 13, 0 },
+ { 16, 0 },
+ { 19, 2 },
} do
run:new_line("ecma/if_else.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4])
end