You could turn hackit_reload and hackit_alert function definition into:
var hackit = { document: document, alert: alert };
This way it will generate coverage data for the declaration, and you will still be able to mockup implementation in tests.
You could turn hackit_reload and hackit_alert function definition into:
var hackit = {
document: document,
alert: alert
};
This way it will generate coverage data for the declaration, and you will still be able to mockup implementation in tests.