feat: coverage for failed value computation
This simple use-case did not work
odelay.Delay(duration) { throw new TimeoutException() }.future
(if there were tests already in the repo I would have added one.)
Thanks - I think the tests are here? https://github.com/softwaremill/odelay/blob/master/odelay-testing/src/test/scalajvm/TimerSpec.scala
Thanks - I think the tests are here? https://github.com/softwaremill/odelay/blob/master/odelay-testing/src/test/scalajvm/TimerSpec.scala
Oops I missed them, thanks for the tip. I'll add one.
There are some test failures
There are some test failures
Sorry Adam, I fiddled with the tests a bit but didn't manage to fix it in 1hr. I have been hacking Scala for 7 years now but have never went through the pains of working on ScalaJS (like Future not having transformWith or not being about to match on types (e.g. case _: Assertion =>). I'm afraid learning it is not that useful either. I'll leave this to anyone who's interested to fix.
@nimatrueway I think it's simply time to drop Scala 2.11 support :)