I have a command line application. The file has several functions but how can I test the line that calls the first function.
For example
function child(ch) {
console.log(ch);
}
function main(a) {
console.log(a);
child('1');
}
main(24);
How can I test here that main has been called when the file loads.