Skip to content

Instantly share code, notes, and snippets.

View sakovias's full-sized avatar

Anton Sakovich sakovias

View GitHub Profile
@sakovias
sakovias / lib.js
Created January 19, 2016 16:30
Stubbing module functions in a node server for unit testing edge cases
var lib = function() {};
lib.prototype.sayHi = function() {
return 'Hello from the original module';
};
module.exports = lib;