coveraje/coveraje — pull request #23 by goatslacker (2012-03-09 06:35:00+00:00)
Title: Fixes Gh 22

My use case is that I'm using the instrumented function returned by coverage. But sometimes a user may do

module.exports = function () { };

Other times

exports.foo = function foo() { };

If I return `context.module.exports` with the current code, the first example works but not the second.

Basically, module.exports should be exports.