summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-10 21:28:11 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-10 23:58:05 +0300
commita3f19c87fb2134db25543f1e15b96144df5638dc (patch)
treeeeb93b47e30ac8add3ead8255be97c3b3b1c1d44 /tests/js
parentf7b10e213b81588d560e37aa5f7c8b0d10ea5689 (diff)
downloadNim-a3f19c87fb2134db25543f1e15b96144df5638dc.tar.gz
lift parameter-less do block to lambdas
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tjsffi.nim8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/js/tjsffi.nim b/tests/js/tjsffi.nim
index be8e2efb7..99a475a8e 100644
--- a/tests/js/tjsffi.nim
+++ b/tests/js/tjsffi.nim
@@ -1,5 +1,6 @@
 discard """
-  output: '''true
+output: '''
+true
 true
 true
 true
@@ -19,7 +20,8 @@ true
 2
 12
 Event { name: 'click: test' }
-Event { name: 'reloaded: test' }'''
+Event { name: 'reloaded: test' }
+'''
 """
 
 import macros, jsffi, jsconsole
@@ -306,6 +308,6 @@ block:
   on("click") do (e: Event):
     console.log e
 
-  jslib.on("reloaded") do:
+  jslib.on "reloaded" do:
     console.log jsarguments[0]