npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Mock Redis object/ methods using sinon

Want to mock a redis method using sinon. Not able to figure out whether it is the right way. Or should I try other methods. Any suggestions please?