about summary refs log tree commit diff
path: root/tests/javascript.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/javascript.scm')
-rw-r--r--tests/javascript.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/javascript.scm b/tests/javascript.scm
index a84f949..cf466b2 100644
--- a/tests/javascript.scm
+++ b/tests/javascript.scm
@@ -40,6 +40,11 @@
   (evaluate-javascript-expression "$(inputs.message['bar'][\"foo\"][2])"
                                   '(("inputs" ("message" ("bar" ("foo" . #("a" "b" "c" "d"))))))))
 
+(test-equal "evaluate null parameter reference"
+  'null
+  (evaluate-javascript-expression "$(null)"
+                                  '()))
+
 (test-equal "evaluate parameter reference to JSON object"
   '(("class" . "File")
     ("path" . "/foo/bar"))
@@ -70,6 +75,10 @@
   (evaluate-javascript-expression "$(inputs.n + 1)"
                                   '(("inputs" ("n" . 2)))))
 
+(test-equal "evaluate null parameter reference with node"
+  ''null
+  (gexp->sexp-rec (evaluate-javascript-expression "$(null)")))
+
 (test-equal "evaluate parameter reference to JSON object using node"
   '(json-ref inputs "fasta")
   (gexp->sexp-rec