Capturing Mock Library for Node.js