I am learning about PhantomJS
and immediatelly found problem.
I want to test exit code
but seems that phantomjs ignores it. Here is my code:
//say hello
console.log("Hello world");
//exit PhantomJS
phantom.exit(1);
In given example I expect to see message "FAIL" in the console but whatever I pass output is the same .. only "Hello world" is displaued.
I am using windows 7 with phantomjs version 2.1.1