summary refs log tree commit diff stats
path: root/tests/js/tjsffi.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-13 12:51:31 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-13 12:51:31 +0200
commit9f31096870103e93b23e17c4a68aa7dcdcc7889e (patch)
treedec84983af52db50e194969ae9d32042b12cb424 /tests/js/tjsffi.nim
parent81645deb871d1ff869c0c7b289d8a851ee3b4214 (diff)
downloadNim-9f31096870103e93b23e17c4a68aa7dcdcc7889e.tar.gz
make JS tests green
Diffstat (limited to 'tests/js/tjsffi.nim')
-rw-r--r--tests/js/tjsffi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/js/tjsffi.nim b/tests/js/tjsffi.nim
index 325ab6366..156ca89e3 100644
--- a/tests/js/tjsffi.nim
+++ b/tests/js/tjsffi.nim
@@ -64,7 +64,7 @@ block:
   proc test(): bool =
     let obj = newJsObject()
     obj.`?!$` = proc(x, y, z: int, t: cstring): cstring = t & $(x + y + z)
-    obj.`?!$`(1, 2, 3, "Result is: ").to(cstring) == "Result is: 6"
+    obj.`?!$`(1, 2, 3, "Result is: ").to(cstring) == cstring"Result is: 6"
   echo test()
 
 # Test JsObject []()