function exit(code) {
    exit.fake ? exit.records.push(code) : process.exit(code);
}

exit.fake = false;
exit.records = [];

exit.codes = {
    readErr: 70,
    writeErr: 80
};

module.exports = exit;

function exit(code) {
    exit.fake ? exit.records.push(code) : process.exit(code);
}

exit.reset = function () {
    exit.fake = false;
    exit.records = [];
};
exit.reset();

exit.codes = {
    readErr: 70,
    writeErr: 80
};

module.exports = exit;

add exit.reset function