Use exports.functionName() instead of functionName() so that we can mock
it in unit test