You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's sorta like nasty dependency injection, but it's also quite practical because right now I'm making assumptions about how the client should be instantiated. And this will make writing tests so much easier!
Currently it makes a lot of assumptions about how to connect to AWS. This moves the responsibility for setting up the connection to AWS from the library to the user of the library. As a side benefit, tests get a lot simpler.
Inspired by https://github.com/rclark/kinesis-readablecloses#23
* greenkeeper
* refactor so client is passed in
* yagni
* cleanup
* doc update
* cleanup package.json
It's sorta like nasty dependency injection, but it's also quite practical because right now I'm making assumptions about how the client should be instantiated. And this will make writing tests so much easier!
inspired by https://github.com/rclark/kinesis-readable
The text was updated successfully, but these errors were encountered: