test: enable Node-test on namespaces with dependency on hickory

This commit is contained in:
Junyi Du
2022-10-18 13:09:26 +08:00
committed by Tienson Qin
parent 94e099ad5d
commit 5937082b49
6 changed files with 96 additions and 44 deletions

View File

@@ -60,6 +60,8 @@
nil)))
(defn- try-parse-as-json
"Result is not only to be an Object.
Maybe JSON types like string, number, boolean, null, array"
[text]
(try (js/JSON.parse text)
(catch :default _ #js{})))