observer-spy

This library makes RxJS Observables testing easy!

MIT License

Downloads
133.4K
Stars
376
Committers
10

Bot releases are hidden (Show)

observer-spy - v2.1.0

Published by shairez almost 4 years ago

2.1.0 (2020-12-18)

Features

observer-spy - v2.0.0

Published by shairez about 4 years ago

2.0.0 (2020-09-29)

Bug Fixes

  • errors: add "expectErrors" (9efe8c6), closes #20

chore

  • removed ObserverSpyWithSubscription and subscribeAndSpyOn (7a2f274)

BREAKING CHANGES

  • errors: From now observerSpy.getError() and observerSpy.receivedError() won't work
    unless you configure new ObserverSpy({expectErrors: true})
    or if you already have an instance (before subscribing) - observerSpy.expectErrors().
    And if you're using the factory function configure it like this -
    subscribeSpyTo(observable, {expectErrors: true})
  • removed ObserverSpyWithSubscription and subscribeAndSpyOn
observer-spy - v1.4.0

Published by shairez about 4 years ago

1.4.0 (2020-09-27)

Features

  • observer-spy: add autoUnsubscribe and rename subscribeAndSpyOn (931dd68), closes #15

DETAILS:

  • Rename subscribeAndSpyOn to subscribeSpyTo
  • Rename ObserverSpyWithSubscription to subscriberSpy
  • Add deprecation messages to subscribeAndSpyOn and ObserverSpyWithSubscription
  • Add autoUnsubscribe + setup file and `queueForAutoUnsubscribe
  • Update and improve README doc
  • Update CONTRIBUTING and CODE_OF_CONDUCT docs
observer-spy - v1.3.0

Published by shairez over 4 years ago

1.3.0 (2020-06-17)

Features

observer-spy - v1.2.1

Published by shairez over 4 years ago

1.2.1 (2020-06-17)

Bug Fixes

  • add missing fakeTime export (10d4999)
observer-spy - v1.2.0

Published by shairez over 4 years ago

1.2.0 (2020-06-13)

Features

  • support async await for onComplete (0ca4d80)
observer-spy - v1.1.0

Published by shairez over 4 years ago

1.1.0 (2020-06-10)

Features

  • faketime: added fakeTime wrapper function (35bc434)
  • observer-spy: added the onComplete method (6cb3f09)
observer-spy - v1.0.0

Published by shairez over 4 years ago

1.0.0 (2020-04-23)

Features