New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: remove unsafeRunSync usage #232
tests: remove unsafeRunSync usage #232
Conversation
202c7de
to
fb7fc92
Compare
ffca6dd
to
54d4431
Compare
54d4431
to
115d9bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks a lot! :)
trait EasySubscribe { | ||
|
||
implicit class Subscriber[T](obs: Observable[T]) { | ||
def apply(next: T => Unit)(implicit s: Scheduler): Cancelable = obs.subscribe { t => | ||
def apply(next: T ⇒ Unit)(implicit s: Scheduler): Cancelable = obs.subscribe { t ⇒ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to stay with ascii arrows instead of unicode ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update it to use ascii
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fdietze updated PR to use <-
instead of ←
and =>
instead of ⇒
in tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
- add `AsyncFlatSpec` from scalatest and introduce two variants of `JSDomSpec`. - refactor tests that rely on `unsafeRunSync` to use `unsafeToFuture` from scalatest. Furthermore, there is an implicit conversion from `IO[Assertion]` to `Future[Assertion]` in `JSDomAsyncSpec` that reduces usage of `unsafeToFuture` boilerplate.
115d9bb
to
75bffde
Compare
LGTM! Thank you for your contribution! |
add
AsyncFlatSpec
from scalatest and introducetwo variants of
JSDomSpec
.refactor tests that rely on
unsafeRunSync
touse
unsafeToFuture
from scalatest. Furthermore,there is an implicit conversion from
IO[Assertion]
to
Future[Assertion]
inJSDomAsyncSpec
that reducesusage of
unsafeToFuture
boilerplate.