ghostwheel 2019-04-24

Hi there, I am trying to generate instance of cljs-time (http://www.andrewmcveigh.com/cljs-time/latest/index.html) but instead getting:

cljs.user> (gen/generate (s/gen #(instance? time/date-time %)))
#object[Error Error: Unable to construct gen at: [] for: function (p1__27926_SHARP_){
return (p1__27926_SHARP_ instanceof cljs_time.core.date_time);
}]
Error: Unable to construct gen at: [] for: function (p1__27926_SHARP_){
return (p1__27926_SHARP_ instanceof cljs_time.core.date_time);
}

I tried gen/generate (s/gen #(time/date? %))) - result the same

Then tried just normal js/Date putting in repl this: (gen/generate (s/gen #(instance? js/Date %))) - similar error

Don't really have time to look into this at the moment, but you might want to ask on the #clojure-spec channel, cause this isn't Ghostwheel-specific and there's a few more people on there. 🙂