Wednesday, 5 April 2017

How to mock Rethinkdb for unit test my DAO's in NodeJS

What is the best approach to mock / stub Rethinkdb in order to unit test my DAO's with NodeJS? I have tried some approaches with Sinon and Proxyquire but I got stuck on the connection object.

Examples are welcome.

Cheers,

Gyo



via Gyowanny Pessatto Queiroz

No comments:

Post a Comment